Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.001605/0.001605, allocations: 114.5 kB / 18.45 MB, free: 4.566 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.00201/0.00201, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 207.6 MB / 231.8 MB, free: 4.023 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 55.92 kB / 342.3 MB, free: 9.992 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.1016, allocations: 49.13 MB / 391.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00575/0.1073, allocations: 3.36 MB / 394.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002751/0.1101, allocations: 1.408 MB / 396.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003149/0.1104, allocations: 15.88 kB / 396.2 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003827/0.1142, allocations: 2.659 MB / 398.9 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007873/0.115, allocations: 174.7 kB / 399 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000838/0.1159, allocations: 287.5 kB / 399.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002408/0.1183, allocations: 1.794 MB / 401.1 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002337/0.1185, allocations: 95.28 kB / 401.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005154/0.119, allocations: 317 kB / 401.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004893/0.1195, allocations: 354.7 kB / 401.9 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.16e-05/0.1196, allocations: 44 kB / 401.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001938/0.1198, allocations: 75.98 kB / 402 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007071/0.1205, allocations: 0.8491 MB / 402.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008191/0.1213, allocations: 0.9307 MB / 403.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003278/0.1246, allocations: 2.63 MB / 406.4 MB, free: 9.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1246, allocations: 4 kB / 406.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1246, allocations: 0 / 406.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.114e-05/0.1247, allocations: 0 / 406.4 MB, free: 9.668 MB / 334.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.005417/0.1301, allocations: 2.884 MB / 409.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.1301, allocations: 11.89 kB / 409.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.1303, allocations: 74.72 kB / 409.4 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005002/0.1308, allocations: 299 kB / 409.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00321/0.134, allocations: 1.854 MB / 411.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.767e-05/0.1341, allocations: 67 kB / 411.6 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002032/0.1343, allocations: 51.97 kB / 411.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008125/0.1351, allocations: 391 kB / 412 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.1351, allocations: 0 / 412 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.295e-05/0.1351, allocations: 16 kB / 412 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.1351, allocations: 8 kB / 412 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000786/0.1359, allocations: 335.7 kB / 412.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005109/0.141, allocations: 2.903 MB / 415.3 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007409/0.1418, allocations: 304.9 kB / 415.6 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003527/0.1421, allocations: 157.6 kB / 415.7 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.054e-05/0.1422, allocations: 4 kB / 415.7 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.1422, allocations: 46.44 kB / 415.8 MB, free: 12 kB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.913e-06/0.1422, allocations: 0 / 415.8 MB, free: 12 kB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.005535/0.1478, allocations: 2.422 MB / 418.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.733e-05/0.1478, allocations: 85.55 kB / 418.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008114/0.1559, allocations: 5.442 MB / 423.7 MB, free: 7.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.156, allocations: 37.64 kB / 423.7 MB, free: 7.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001368/0.1574, allocations: 1.203 MB / 424.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/0.1576, allocations: 178.5 kB / 425.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.1578, allocations: 90.2 kB / 425.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.158, allocations: 329.9 kB / 425.5 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/0.1583, allocations: 141.1 kB / 425.7 MB, free: 5.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004164/0.1587, allocations: 225.7 kB / 425.9 MB, free: 5.742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007803/0.1595, allocations: 384.3 kB / 426.3 MB, free: 5.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1595, allocations: 0 / 426.3 MB, free: 5.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001536/0.1611, allocations: 0.6934 MB / 427 MB, free: 4.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1611, allocations: 4 kB / 427 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1611, allocations: 4 kB / 427 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.1611, allocations: 4 kB / 427 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005508/0.1617, allocations: 124 kB / 427.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/0.1617, allocations: 11.94 kB / 427.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006251/0.1623, allocations: 19.95 kB / 427.1 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.943e-05/0.1623, allocations: 19.98 kB / 427.1 MB, free: 4.453 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.001363/0.1637, allocations: 0.9192 MB / 428.1 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005263/0.1642, allocations: 282.1 kB / 428.3 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001727/0.166, allocations: 0.7707 MB / 429.1 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.166, allocations: 7.938 kB / 429.1 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.166, allocations: 3.984 kB / 429.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.166, allocations: 7.984 kB / 429.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.1682, allocations: 1.469 MB / 430.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1682, allocations: 0 / 430.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005004/0.1687, allocations: 95.88 kB / 430.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000373/0.169, allocations: 88.8 kB / 430.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.382e-05/0.1691, allocations: 8 kB / 430.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006714/0.1697, allocations: 0.6344 MB / 431.4 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1697, allocations: 0 / 431.4 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/0.1718, allocations: 1.075 MB / 432.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000892/0.1727, allocations: 0.4952 MB / 433 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/0.1729, allocations: 12 kB / 433 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005005/0.1734, allocations: 20.11 kB / 433 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.314e-05/0.1735, allocations: 32.39 kB / 433 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.058e-05/0.1735, allocations: 16 kB / 433.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.006144/0.1797, allocations: 3.97 MB / 437 MB, free: 10.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1797, allocations: 0 / 437 MB, free: 10.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0011/0.1808, allocations: 204 kB / 437.2 MB, free: 10.22 MB / 366.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.00434/0.1851, allocations: 1.945 MB / 439.2 MB, free: 8.242 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009943/0.1861, allocations: 353 kB / 439.5 MB, free: 7.898 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.1861, allocations: 4 kB / 439.5 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000538/0.1867, allocations: 198.8 kB / 439.7 MB, free: 7.699 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.1881, allocations: 203.1 kB / 439.9 MB, free: 7.496 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04509/0.2332, allocations: 19.34 MB / 459.3 MB, free: 3.965 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00193/0.2352, allocations: 1.817 MB / 461.1 MB, free: 2.113 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007128/0.2359, allocations: 275.6 kB / 461.3 MB, free: 1.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/0.2372, allocations: 0.9366 MB / 462.3 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.2372, allocations: 0 / 462.3 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2659/0.5031, allocations: 38.77 MB / 0.4893 GB, free: 39.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.24/17.74, allocations: 4.547 kB / 0.4893 GB, free: 39.46 MB / 382.1 MB " [Timeout remaining time 642] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 20.679346492994227]