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.001845/0.001845, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.002078/0.002078, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.437/1.437, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.001528/0.001528, allocations: 43.92 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2369, allocations: 53.36 MB / 431.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004371/0.2413, allocations: 2.893 MB / 434 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.2433, allocations: 1.234 MB / 435.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.2434, allocations: 4 kB / 435.3 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001518/0.2449, allocations: 0.6224 MB / 435.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003022/0.2452, allocations: 143 kB / 436 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.2465, allocations: 0.6598 MB / 436.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003884/0.2469, allocations: 294.6 kB / 437 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004122/0.2473, allocations: 242.6 kB / 437.2 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/0.2475, allocations: 135.5 kB / 437.3 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.2478, allocations: 167.3 kB / 437.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.901e-05/0.2478, allocations: 28 kB / 437.5 MB, free: 476 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003331/0.2481, allocations: 183.8 kB / 437.7 MB, free: 292 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.342e-05/0.2482, allocations: 63.77 kB / 437.8 MB, free: 228 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.2483, allocations: 151.3 kB / 437.9 MB, free: 76 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006353/0.249, allocations: 0.4953 MB / 438.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.249, allocations: 0 / 438.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.249, allocations: 3.938 kB / 438.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.249, allocations: 0 / 438.4 MB, free: 15.57 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.00156/0.2505, allocations: 0.6534 MB / 439.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.2506, allocations: 11.97 kB / 439.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.363e-05/0.2506, allocations: 70.72 kB / 439.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007921/0.2514, allocations: 116.7 kB / 439.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/0.2518, allocations: 210.7 kB / 439.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.2518, allocations: 25.03 kB / 439.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.219e-05/0.2519, allocations: 44.06 kB / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005475/0.2524, allocations: 329.1 kB / 439.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.2524, allocations: 0 / 439.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.095e-05/0.2525, allocations: 16 kB / 439.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.2525, allocations: 8 kB / 439.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004222/0.2529, allocations: 238.5 kB / 440.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.2549, allocations: 1.376 MB / 441.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004982/0.2554, allocations: 238.6 kB / 441.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.2556, allocations: 98.39 kB / 441.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.977e-05/0.2557, allocations: 15.98 kB / 441.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.2557, allocations: 34.56 kB / 441.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.2557, allocations: 0 / 441.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001228/0.2569, allocations: 422 kB / 442.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.257, allocations: 59.34 kB / 442.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.2571, allocations: 175.3 kB / 442.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.2572, allocations: 25.7 kB / 442.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.2573, allocations: 180.3 kB / 442.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.877e-05/0.2574, allocations: 87.28 kB / 442.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-05/0.2574, allocations: 53.98 kB / 442.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.2576, allocations: 326.8 kB / 443.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.2577, allocations: 72.53 kB / 443.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.2579, allocations: 133 kB / 443.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/0.2582, allocations: 216 kB / 443.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2582, allocations: 0 / 443.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005914/0.2588, allocations: 336.7 kB / 443.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.2588, allocations: 6.812 kB / 443.9 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.2588, allocations: 4 kB / 443.9 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003117/0.2591, allocations: 84.67 kB / 444 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.2593, allocations: 39.92 kB / 444 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/0.2614, allocations: 1.938 MB / 446 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.2615, allocations: 23.88 kB / 446 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.307e-05/0.2615, allocations: 15.98 kB / 446 MB, free: 7.52 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.0001428/0.2617, allocations: 145.7 kB / 446.2 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.03e-05/0.2617, allocations: 23.8 kB / 446.2 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005653/0.2623, allocations: 284.3 kB / 446.5 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.2623, allocations: 8 kB / 446.5 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.2623, allocations: 0 / 446.5 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2623, allocations: 0 / 446.5 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009943/0.2633, allocations: 0.6544 MB / 447.1 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2633, allocations: 0 / 447.1 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.2634, allocations: 23.98 kB / 447.2 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002351/0.2636, allocations: 81.02 kB / 447.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.2637, allocations: 7.938 kB / 447.2 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002004/0.2657, allocations: 1.926 MB / 449.2 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2657, allocations: 0 / 449.2 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000677/0.2663, allocations: 455.2 kB / 449.6 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.3e-05/0.2664, allocations: 35.84 kB / 449.6 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/0.2664, allocations: 8.125 kB / 449.7 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.2666, allocations: 8 kB / 449.7 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.056e-05/0.2666, allocations: 19.89 kB / 449.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.2666, allocations: 8 kB / 449.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000105/0.2667, allocations: 123.2 kB / 449.8 MB, free: 3.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2667, allocations: 0 / 449.8 MB, free: 3.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004776/0.2672, allocations: 99.78 kB / 449.9 MB, free: 3.43 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.001084/0.2683, allocations: 1.002 MB / 450.9 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006208/0.2689, allocations: 340.6 kB / 451.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2689, allocations: 0 / 451.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003491/0.2693, allocations: 251 kB / 451.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.2696, allocations: 26 kB / 451.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00335/0.2729, allocations: 2.507 MB / 454 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.2733, allocations: 0.756 MB / 454.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.156e-05/0.2734, allocations: 21.95 kB / 454.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.2735, allocations: 71.41 kB / 454.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2735, allocations: 0 / 454.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03618/0.3097, allocations: 5.404 MB / 460.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.05, allocations: 1.406 kB / 460.3 MB, free: 8.996 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.462806773997727]