Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001964/0.001964, allocations: 119.3 kB / 17.74 MB, free: 5.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002309/0.002309, allocations: 186.9 kB / 20.68 MB, free: 2.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 222.9 MB / 246.4 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 43.92 kB / 357.5 MB, free: 8.816 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1103, allocations: 49.45 MB / 406.9 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00527/0.1156, allocations: 3.388 MB / 410.3 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002641/0.1183, allocations: 1.45 MB / 411.8 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002141/0.1185, allocations: 8 kB / 411.8 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003396/0.1219, allocations: 2.655 MB / 414.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006174/0.1226, allocations: 170.7 kB / 414.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008735/0.1235, allocations: 310.7 kB / 414.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002203/0.1257, allocations: 1.802 MB / 416.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002734/0.126, allocations: 131.2 kB / 416.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004322/0.1264, allocations: 305.1 kB / 417.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004389/0.1269, allocations: 334.8 kB / 417.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.773e-05/0.127, allocations: 44 kB / 417.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002296/0.1272, allocations: 83.97 kB / 417.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007486/0.128, allocations: 0.8452 MB / 418.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008709/0.1288, allocations: 0.9346 MB / 419.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00276/0.1316, allocations: 2.63 MB / 422 MB, free: 8.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1316, allocations: 4 kB / 422 MB, free: 8.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1316, allocations: 0 / 422 MB, free: 8.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.798e-05/0.1317, allocations: 4 kB / 422 MB, free: 8.203 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004441/0.1361, allocations: 2.897 MB / 424.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.1362, allocations: 11.89 kB / 424.9 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.1363, allocations: 74.72 kB / 425 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003955/0.1367, allocations: 295 kB / 425.3 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002644/0.1394, allocations: 1.842 MB / 427.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.365e-05/0.1395, allocations: 67.02 kB / 427.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001882/0.1397, allocations: 47.92 kB / 427.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007542/0.1404, allocations: 398.9 kB / 427.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.1404, allocations: 4 kB / 427.6 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.706e-05/0.1405, allocations: 16 kB / 427.6 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.1405, allocations: 11.94 kB / 427.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007463/0.1413, allocations: 327.7 kB / 428 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2263/0.3676, allocations: 2.904 MB / 430.9 MB, free: 21.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007754/0.3684, allocations: 312.2 kB / 431.2 MB, free: 21.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.3687, allocations: 165.6 kB / 431.3 MB, free: 21.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.824e-05/0.3688, allocations: 1.281 kB / 431.3 MB, free: 21.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.3688, allocations: 46.34 kB / 431.4 MB, free: 21.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.394e-06/0.3688, allocations: 0 / 431.4 MB, free: 21.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.005076/0.3739, allocations: 2.457 MB / 433.8 MB, free: 20.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.3739, allocations: 82.84 kB / 433.9 MB, free: 20.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008971/0.3829, allocations: 5.435 MB / 439.4 MB, free: 19.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.3831, allocations: 34.7 kB / 439.4 MB, free: 19.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001151/0.3842, allocations: 1.209 MB / 440.6 MB, free: 19.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.3844, allocations: 179.5 kB / 440.8 MB, free: 19.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.3846, allocations: 88.05 kB / 440.9 MB, free: 19.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.673e-05/0.3847, allocations: 324.2 kB / 441.2 MB, free: 19.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003691/0.385, allocations: 140.7 kB / 441.3 MB, free: 19.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/0.3854, allocations: 220.3 kB / 441.5 MB, free: 19.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007223/0.3861, allocations: 384.2 kB / 441.9 MB, free: 19.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3862, allocations: 0 / 441.9 MB, free: 19.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001578/0.3877, allocations: 0.698 MB / 442.6 MB, free: 18.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.3878, allocations: 7.234 kB / 442.6 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.3878, allocations: 6.906 kB / 442.6 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.3878, allocations: 4.281 kB / 442.6 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005112/0.3883, allocations: 121.2 kB / 442.7 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.3884, allocations: 11.59 kB / 442.8 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005119/0.3889, allocations: 16.89 kB / 442.8 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.661e-05/0.3889, allocations: 24.7 kB / 442.8 MB, free: 18.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001334/0.3903, allocations: 0.9171 MB / 443.7 MB, free: 18.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003667/0.3906, allocations: 280.7 kB / 444 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/0.3922, allocations: 0.7946 MB / 444.8 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.3922, allocations: 8.688 kB / 444.8 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.3922, allocations: 1.062 kB / 444.8 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.3922, allocations: 3.969 kB / 444.8 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001978/0.3942, allocations: 1.464 MB / 446.3 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.3942, allocations: 5.719 kB / 446.3 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004493/0.3947, allocations: 94.56 kB / 446.4 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003924/0.3951, allocations: 99.09 kB / 446.5 MB, free: 17.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.105e-05/0.3952, allocations: 9.453 kB / 446.5 MB, free: 17.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005037/0.3957, allocations: 0.6414 MB / 447.1 MB, free: 16.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3957, allocations: 1.766 kB / 447.1 MB, free: 16.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/0.3975, allocations: 1.088 MB / 448.2 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008364/0.3984, allocations: 0.4976 MB / 448.7 MB, free: 16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003073/0.3987, allocations: 6.938 kB / 448.7 MB, free: 16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005334/0.3992, allocations: 23.62 kB / 448.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.886e-05/0.3993, allocations: 30.73 kB / 448.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.049e-05/0.3994, allocations: 19.19 kB / 448.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.005536/0.4049, allocations: 3.971 MB / 452.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4049, allocations: 0 / 452.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001147/0.4061, allocations: 208.2 kB / 452.9 MB, free: 14.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003479/0.4096, allocations: 1.947 MB / 454.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.4106, allocations: 380.1 kB / 455.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4106, allocations: 5.312 kB / 455.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005432/0.4112, allocations: 219 kB / 455.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001618/0.4128, allocations: 199 kB / 455.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04284/0.4557, allocations: 19.37 MB / 475 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002917/0.4586, allocations: 1.814 MB / 476.9 MB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00105/0.4597, allocations: 271.6 kB / 477.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001713/0.4615, allocations: 0.9288 MB / 478 MB, free: 8.176 MB / 366.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4615, allocations: 0 / 478 MB, free: 8.176 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09923/0.5607, allocations: 38.64 MB / 0.5046 GB, free: 1.836 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.52/18.08, allocations: 4.5 kB / 0.5046 GB, free: 1.832 MB / 398.1 MB " [Timeout remaining time 642] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.099354063044302]