Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.0009394/0.0009394, allocations: 83.62 kB / 21.43 MB, free: 3.129 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.005154/0.005154, allocations: 163.3 kB / 24.69 MB, free: 9.41 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.9004/0.9004, allocations: 158.6 MB / 186.5 MB, free: 3.047 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.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.437e-05/2.654e-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.InductorWithHysteresis): time 0.004465/0.004491, allocations: 2.614 MB / 301.1 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1323/0.1368, allocations: 1.169 MB / 302.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002961/0.1371, allocations: 5.156 kB / 302.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000262/0.1374, allocations: 64.5 kB / 302.3 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005239/0.1379, allocations: 236.5 kB / 302.5 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002612/0.1381, allocations: 121.3 kB / 302.6 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003824/0.1385, allocations: 471.9 kB / 303.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.1387, allocations: 55.08 kB / 303.2 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003079/0.139, allocations: 271.5 kB / 303.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/0.1392, allocations: 173.7 kB / 303.6 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.301e-05/0.1392, allocations: 41.34 kB / 303.6 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002521/0.1395, allocations: 154.3 kB / 303.8 MB, free: 13 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.877e-05/0.1396, allocations: 100.5 kB / 303.9 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.1397, allocations: 134.6 kB / 304 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006423/0.1403, allocations: 0.5421 MB / 304.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1403, allocations: 2.875 kB / 304.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1403, allocations: 0 / 304.6 MB, free: 12.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.1403, allocations: 0.6562 kB / 304.6 MB, free: 12.93 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.00109/0.1414, allocations: 0.6404 MB / 305.2 MB, free: 12.53 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.1415, allocations: 14.52 kB / 305.2 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.141e-05/0.1415, allocations: 60.38 kB / 305.3 MB, free: 12.47 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.198e-05/0.1416, allocations: 35.5 kB / 305.3 MB, free: 12.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000414/0.142, allocations: 268.5 kB / 305.6 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.242e-05/0.1421, allocations: 102.1 kB / 305.7 MB, free: 12.15 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.1422, allocations: 42.2 kB / 305.7 MB, free: 12.13 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000473/0.1427, allocations: 353.7 kB / 306.1 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1427, allocations: 3.938 kB / 306.1 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.1427, allocations: 11.38 kB / 306.1 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.1427, allocations: 6.531 kB / 306.1 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004752/0.1432, allocations: 302.4 kB / 306.4 MB, free: 11.85 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.1445, allocations: 1.049 MB / 307.4 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004165/0.1449, allocations: 280.9 kB / 307.7 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.1451, allocations: 156.8 kB / 307.8 MB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.1451, allocations: 2.906 kB / 307.8 MB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.523e-05/0.1451, allocations: 37.5 kB / 307.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.914e-06/0.1451, allocations: 0 / 307.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=42): time 0.00508/0.1502, allocations: 2.274 MB / 310.2 MB, free: 10.11 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/0.1502, allocations: 81.52 kB / 310.2 MB, free: 10.02 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002924/0.1505, allocations: 294.3 kB / 310.5 MB, free: 9.848 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.1505, allocations: 30.92 kB / 310.6 MB, free: 9.812 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.15e-05/0.1506, allocations: 172.1 kB / 310.7 MB, free: 9.66 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.152e-05/0.1507, allocations: 149.2 kB / 310.9 MB, free: 9.543 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1508, allocations: 83.53 kB / 311 MB, free: 9.496 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.677e-05/0.1508, allocations: 339.6 kB / 311.3 MB, free: 9.172 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.1511, allocations: 167.2 kB / 311.4 MB, free: 9.109 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.1513, allocations: 227.3 kB / 311.7 MB, free: 8.992 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.1518, allocations: 404.1 kB / 312.1 MB, free: 8.789 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1518, allocations: 1.375 kB / 312.1 MB, free: 8.789 MB / 282.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006169/0.1524, allocations: 494.5 kB / 312.5 MB, free: 8.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.1525, allocations: 9.672 kB / 312.6 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1525, allocations: 4.656 kB / 312.6 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.1525, allocations: 3.781 kB / 312.6 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003231/0.1528, allocations: 120.5 kB / 312.7 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.1528, allocations: 8.016 kB / 312.7 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.153, allocations: 29.33 kB / 312.7 MB, free: 8.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.153, allocations: 18.08 kB / 312.7 MB, free: 8.566 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 52 * 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.0001059/0.1531, allocations: 151.8 kB / 312.9 MB, free: 8.426 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.349e-05/0.1532, allocations: 33.95 kB / 312.9 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/0.1542, allocations: 0.6445 MB / 313.6 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.1542, allocations: 5.5 kB / 313.6 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.1542, allocations: 4.875 kB / 313.6 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.1543, allocations: 7.094 kB / 313.6 MB, free: 8.141 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001893/0.1561, allocations: 1.174 MB / 314.8 MB, free: 7.547 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.1561, allocations: 0 / 314.8 MB, free: 7.547 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002535/0.1564, allocations: 94.67 kB / 314.8 MB, free: 7.535 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008169/0.1572, allocations: 267.8 kB / 315.1 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.1573, allocations: 14.23 kB / 315.1 MB, free: 7.477 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002302/0.1596, allocations: 2.297 MB / 317.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1596, allocations: 0 / 317.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.161, allocations: 1.007 MB / 318.4 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.1611, allocations: 74.03 kB / 318.5 MB, free: 5.141 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.1612, allocations: 19.61 kB / 318.5 MB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.1614, allocations: 29.05 kB / 318.5 MB, free: 5.117 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.1615, allocations: 38.23 kB / 318.6 MB, free: 5.113 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.1615, allocations: 12.59 kB / 318.6 MB, free: 5.109 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001666/0.1617, allocations: 216.2 kB / 318.8 MB, free: 4.98 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1617, allocations: 0 / 318.8 MB, free: 4.98 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004928/0.1622, allocations: 114.5 kB / 318.9 MB, free: 4.965 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * 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 (40): * Single equations (assignments): 39 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001602/0.1638, allocations: 1.59 MB / 320.5 MB, free: 3.898 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006902/0.1645, allocations: 411.4 kB / 320.9 MB, free: 3.77 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1645, allocations: 1.156 kB / 320.9 MB, free: 3.77 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004538/0.1649, allocations: 364.2 kB / 321.3 MB, free: 3.562 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.1653, allocations: 41.28 kB / 321.3 MB, free: 3.543 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00387/0.1691, allocations: 3.756 MB / 325.1 MB, free: 1.039 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.1693, allocations: 182.2 kB / 325.2 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001586/0.1694, allocations: 41.22 kB / 325.3 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.1696, allocations: 118 kB / 325.4 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of SimCode: time 1.102e-06/0.1696, allocations: 0 / 325.4 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0259/0.1955, allocations: 10.25 MB / 335.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.997/8.192, allocations: 3.984 kB / 335.6 MB, free: 8.461 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,core.B,core.Hstat,core.MagRel,winding.i Variables in the result:time,core.B,core.Hstat,core.MagRel,winding.i [Calling sys.exit(0), Time elapsed: 10.015796029008925]