Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002/0.002, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002315/0.002315, allocations: 210.5 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 51.91 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2463, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004123/0.2504, allocations: 2.67 MB / 433.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.2524, allocations: 1.129 MB / 434.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.2525, allocations: 8 kB / 434.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001504/0.254, allocations: 0.5756 MB / 435.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003249/0.2543, allocations: 147 kB / 435.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.2556, allocations: 0.6068 MB / 436.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003988/0.256, allocations: 294.6 kB / 436.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004256/0.2564, allocations: 240.8 kB / 436.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.2566, allocations: 135.6 kB / 436.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002242/0.2569, allocations: 167.4 kB / 437 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.463e-05/0.2569, allocations: 28 kB / 437.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000328/0.2572, allocations: 175.9 kB / 437.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.015e-05/0.2573, allocations: 71.7 kB / 437.3 MB, free: 436 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.2574, allocations: 119.5 kB / 437.4 MB, free: 316 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000621/0.258, allocations: 0.502 MB / 437.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2581, allocations: 3.938 kB / 437.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2581, allocations: 0 / 437.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.2581, allocations: 0 / 437.9 MB, free: 15.8 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001594/0.2597, allocations: 0.6573 MB / 438.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2597, allocations: 12.03 kB / 438.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.88e-05/0.2598, allocations: 70.72 kB / 438.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000807/0.2606, allocations: 116.7 kB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003552/0.2609, allocations: 202.7 kB / 439 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.261, allocations: 21.03 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.002e-05/0.261, allocations: 44.11 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005366/0.2616, allocations: 325.1 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.2616, allocations: 4 kB / 439.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/0.2616, allocations: 16 kB / 439.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.2616, allocations: 8 kB / 439.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004407/0.262, allocations: 242.4 kB / 439.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002282/0.2643, allocations: 1.093 MB / 440.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006856/0.265, allocations: 230.6 kB / 440.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.2652, allocations: 102.4 kB / 441 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/0.2654, allocations: 19.98 kB / 441.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.2654, allocations: 34.56 kB / 441.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.824e-06/0.2654, allocations: 0 / 441.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001631/0.267, allocations: 425.9 kB / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.2671, allocations: 55.41 kB / 441.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.2673, allocations: 171.2 kB / 441.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.324e-05/0.2673, allocations: 33.7 kB / 441.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.2675, allocations: 180.3 kB / 441.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.203e-05/0.2676, allocations: 87.27 kB / 442 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.374e-05/0.2677, allocations: 53.94 kB / 442.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.2678, allocations: 330.8 kB / 442.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.2679, allocations: 68.55 kB / 442.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.2681, allocations: 129 kB / 442.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003179/0.2684, allocations: 224 kB / 442.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2684, allocations: 0 / 442.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005794/0.269, allocations: 332.5 kB / 443.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.269, allocations: 4.219 kB / 443.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.269, allocations: 8 kB / 443.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003092/0.2693, allocations: 84.67 kB / 443.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.2695, allocations: 35.98 kB / 443.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.2716, allocations: 1.918 MB / 445.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.2717, allocations: 27.78 kB / 445.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.2717, allocations: 12 kB / 445.2 MB, free: 8.098 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000145/0.2719, allocations: 137.8 kB / 445.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.2719, allocations: 19.84 kB / 445.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005737/0.2725, allocations: 288.2 kB / 445.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2725, allocations: 0 / 445.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.2725, allocations: 4 kB / 445.7 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.175e-06/0.2725, allocations: 3.938 kB / 445.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009747/0.2735, allocations: 0.6271 MB / 446.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2735, allocations: 4 kB / 446.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.2736, allocations: 27.92 kB / 446.3 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002363/0.2738, allocations: 81.02 kB / 446.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.2739, allocations: 8 kB / 446.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002084/0.276, allocations: 1.899 MB / 448.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.276, allocations: 0 / 448.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006966/0.2767, allocations: 459.2 kB / 448.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.77e-05/0.2767, allocations: 39.81 kB / 448.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.2768, allocations: 0 / 448.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.2769, allocations: 4 kB / 448.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.2769, allocations: 24.09 kB / 448.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.2769, allocations: 4 kB / 448.8 MB, free: 4.285 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001196/0.277, allocations: 131.2 kB / 449 MB, free: 4.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.277, allocations: 0 / 449 MB, free: 4.156 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004891/0.2775, allocations: 99.78 kB / 449.1 MB, free: 4.059 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00114/0.2787, allocations: 1.002 MB / 450.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006176/0.2793, allocations: 336.9 kB / 450.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2793, allocations: 0 / 450.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003515/0.2796, allocations: 254.7 kB / 450.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.28, allocations: 22.92 kB / 450.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003373/0.2833, allocations: 2.506 MB / 453.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.2835, allocations: 146.5 kB / 453.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.716e-05/0.2836, allocations: 33.88 kB / 453.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.2837, allocations: 71.41 kB / 453.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2837, allocations: 0 / 453.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03751/0.3212, allocations: 5.852 MB / 459.3 MB, free: 9.805 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.94, allocations: 7.344 kB / 459.3 MB, free: 9.801 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable leakageWithCoefficient.port_p.reference.gamma in file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv. Warning: Get data of variable leakageWithCoefficient.port_p.reference.gamma from file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.412111167999683]