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.001159/0.001159, allocations: 87.62 kB / 21.43 MB, free: 3.121 MB / 18.57 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.003703/0.003703, allocations: 166 kB / 24.7 MB, free: 9.434 MB / 18.57 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 0.8249/0.8249, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.653e-05/1.796e-05, allocations: 2.281 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.003191/0.003209, allocations: 3.101 MB / 301.5 MB, free: 404 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1193/0.1225, allocations: 1.355 MB / 302.9 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/0.1228, allocations: 8.156 kB / 302.9 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002958/0.1257, allocations: 2.673 MB / 305.6 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004464/0.1262, allocations: 190.5 kB / 305.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005314/0.1267, allocations: 278.6 kB / 306 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001949/0.1287, allocations: 1.816 MB / 307.8 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.1289, allocations: 101.3 kB / 307.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005367/0.1294, allocations: 413.4 kB / 308.4 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003732/0.1298, allocations: 295.2 kB / 308.6 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.074e-05/0.1299, allocations: 44.69 kB / 308.7 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001612/0.13, allocations: 70.97 kB / 308.8 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005332/0.1305, allocations: 0.8604 MB / 309.6 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003893/0.1309, allocations: 469.8 kB / 310.1 MB, free: 12.13 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00191/0.1328, allocations: 2.489 MB / 312.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1329, allocations: 0 / 312.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1329, allocations: 1.125 kB / 312.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.446e-05/0.1329, allocations: 5.156 kB / 312.6 MB, free: 11.34 MB / 282.7 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.003226/0.1362, allocations: 2.796 MB / 315.4 MB, free: 9.223 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1362, allocations: 13.64 kB / 315.4 MB, free: 9.219 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.311e-05/0.1363, allocations: 71.56 kB / 315.4 MB, free: 9.152 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003553/0.1366, allocations: 293.5 kB / 315.7 MB, free: 8.988 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002004/0.1386, allocations: 1.793 MB / 317.5 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.402e-05/0.1387, allocations: 108.1 kB / 317.6 MB, free: 7.84 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.1388, allocations: 54.7 kB / 317.7 MB, free: 7.816 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005345/0.1394, allocations: 447.4 kB / 318.1 MB, free: 7.504 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1394, allocations: 7.984 kB / 318.1 MB, free: 7.496 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.999e-05/0.1394, allocations: 12.59 kB / 318.1 MB, free: 7.488 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.1394, allocations: 9.969 kB / 318.2 MB, free: 7.488 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004658/0.1399, allocations: 326.3 kB / 318.5 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003146/0.1431, allocations: 2.624 MB / 321.1 MB, free: 5.617 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004269/0.1435, allocations: 301.9 kB / 321.4 MB, free: 5.445 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.1437, allocations: 155.8 kB / 321.5 MB, free: 5.359 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.1437, allocations: 4.094 kB / 321.5 MB, free: 5.359 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.411e-05/0.1437, allocations: 42.2 kB / 321.6 MB, free: 5.312 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 2.385e-06/0.1437, allocations: 1.125 kB / 321.6 MB, free: 5.312 MB / 282.7 MB Notification: Performance of matching and sorting (n=48): time 0.00314/0.1469, allocations: 2.362 MB / 324 MB, free: 3.812 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.1469, allocations: 84.58 kB / 324 MB, free: 3.715 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004878/0.1518, allocations: 5.438 MB / 329.5 MB, free: 15.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.313e-05/0.1519, allocations: 33.7 kB / 329.5 MB, free: 15.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007992/0.1527, allocations: 1.21 MB / 330.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.1528, allocations: 169.4 kB / 330.9 MB, free: 14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.1529, allocations: 94.12 kB / 331 MB, free: 13.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.513e-05/0.153, allocations: 325.9 kB / 331.3 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.1532, allocations: 145 kB / 331.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.1535, allocations: 217.1 kB / 331.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004414/0.1539, allocations: 385.5 kB / 332 MB, free: 12.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.1539, allocations: 4 kB / 332 MB, free: 12.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008665/0.1548, allocations: 0.6986 MB / 332.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.1548, allocations: 8 kB / 332.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1548, allocations: 256 / 332.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.1548, allocations: 8 kB / 332.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.1551, allocations: 119.8 kB / 332.9 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.1551, allocations: 4 kB / 332.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003008/0.1554, allocations: 20.86 kB / 332.9 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.1555, allocations: 20.62 kB / 332.9 MB, free: 11.9 MB / 298.7 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.0009654/0.1564, allocations: 0.923 MB / 333.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.1567, allocations: 282.1 kB / 334.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009216/0.1576, allocations: 0.7791 MB / 334.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1576, allocations: 8 kB / 334.9 MB, free: 9.898 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.1576, allocations: 0 / 334.9 MB, free: 9.898 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.1576, allocations: 0 / 334.9 MB, free: 9.898 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.1588, allocations: 1.242 MB / 336.1 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.1588, allocations: 0 / 336.1 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.159, allocations: 103.3 kB / 336.2 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002392/0.1592, allocations: 88.73 kB / 336.3 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.1593, allocations: 12 kB / 336.3 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003886/0.1596, allocations: 0.6328 MB / 337 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1596, allocations: 4.031 kB / 337 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009884/0.1606, allocations: 1.069 MB / 338 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004678/0.1611, allocations: 426.1 kB / 338.4 MB, free: 6.258 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.1612, allocations: 15.94 kB / 338.5 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.1615, allocations: 15.98 kB / 338.5 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.021e-05/0.1615, allocations: 32.44 kB / 338.5 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.1616, allocations: 12 kB / 338.5 MB, free: 6.184 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00319/0.1647, allocations: 3.974 MB / 342.5 MB, free: 2.215 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1647, allocations: 4 kB / 342.5 MB, free: 2.211 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005441/0.1653, allocations: 211.9 kB / 342.7 MB, free: 2.004 MB / 298.7 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.001785/0.1671, allocations: 1.966 MB / 344.7 MB, free: 36 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005065/0.1676, allocations: 358.2 kB / 345 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1676, allocations: 0 / 345 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002643/0.1678, allocations: 198.8 kB / 345.2 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007928/0.1686, allocations: 191.8 kB / 345.4 MB, free: 15.3 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02693/0.1956, allocations: 19.23 MB / 364.6 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009405/0.1965, allocations: 1.241 MB / 365.9 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006607/0.1972, allocations: 271.6 kB / 366.1 MB, free: 10.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007669/0.1979, allocations: 0.9377 MB / 367.1 MB, free: 9.398 MB / 330.7 MB Notification: Performance of SimCode: time 1.673e-06/0.1979, allocations: 0 / 367.1 MB, free: 9.398 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06443/0.2624, allocations: 39.78 MB / 406.9 MB, free: 1.418 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.056/9.318, allocations: 7.844 kB / 406.9 MB, free: 1.41 MB / 362.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins/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: 11.186405784450471]