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.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.001419/0.001419, allocations: 122.2 kB / 18.45 MB, free: 4.477 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.001496/0.001496, allocations: 190.9 kB / 21.39 MB, free: 1.543 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.475/1.475, allocations: 207.6 MB / 231.8 MB, free: 4.004 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.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_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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 55.91 kB / 342.3 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.102, allocations: 49.13 MB / 391.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005054/0.1071, allocations: 3.364 MB / 394.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.1095, allocations: 1.4 MB / 396.1 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.1096, allocations: 11.94 kB / 396.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003243/0.1129, allocations: 2.659 MB / 398.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005361/0.1134, allocations: 178.7 kB / 399 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007182/0.1141, allocations: 287.4 kB / 399.3 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001982/0.1161, allocations: 1.794 MB / 401.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002274/0.1164, allocations: 99.27 kB / 401.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004076/0.1168, allocations: 313 kB / 401.5 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004225/0.1172, allocations: 350.8 kB / 401.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.93e-05/0.1173, allocations: 47.94 kB / 401.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00017/0.1174, allocations: 72 kB / 401.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007365/0.1182, allocations: 0.8492 MB / 402.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007976/0.119, allocations: 0.9346 MB / 403.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002747/0.1217, allocations: 2.618 MB / 406.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.1217, allocations: 4 kB / 406.3 MB, free: 9.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1217, allocations: 4 kB / 406.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.819e-05/0.1217, allocations: 3.938 kB / 406.3 MB, free: 9.707 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.004398/0.1261, allocations: 2.891 MB / 409.2 MB, free: 6.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.1262, allocations: 11.89 kB / 409.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.1263, allocations: 74.72 kB / 409.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003529/0.1266, allocations: 295 kB / 409.6 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002869/0.1295, allocations: 1.85 MB / 411.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.43e-05/0.1296, allocations: 63.02 kB / 411.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/0.1298, allocations: 43.98 kB / 411.6 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007463/0.1305, allocations: 402.9 kB / 411.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.1306, allocations: 4 kB / 412 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.57e-05/0.1306, allocations: 12 kB / 412 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.1306, allocations: 12 kB / 412 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007254/0.1313, allocations: 339.7 kB / 412.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00455/0.1359, allocations: 2.896 MB / 415.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006534/0.1365, allocations: 304.9 kB / 415.5 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.1368, allocations: 161.6 kB / 415.7 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.1369, allocations: 4 kB / 415.7 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.1369, allocations: 42.48 kB / 415.7 MB, free: 52 kB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.893e-06/0.1369, allocations: 0 / 415.7 MB, free: 52 kB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.004926/0.1419, allocations: 2.433 MB / 418.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.1419, allocations: 81.55 kB / 418.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006676/0.1486, allocations: 5.435 MB / 423.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.218e-05/0.1487, allocations: 37.73 kB / 423.7 MB, free: 7.977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.1499, allocations: 1.207 MB / 424.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.1501, allocations: 174.5 kB / 425.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.1502, allocations: 94.19 kB / 425.2 MB, free: 6.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1504, allocations: 322 kB / 425.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003506/0.1507, allocations: 145 kB / 425.6 MB, free: 6.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003894/0.1511, allocations: 229.6 kB / 425.8 MB, free: 5.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007231/0.1518, allocations: 380.4 kB / 426.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1518, allocations: 3.938 kB / 426.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001329/0.1532, allocations: 0.6934 MB / 426.9 MB, free: 4.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.1532, allocations: 8 kB / 426.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.1532, allocations: 0 / 426.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.1532, allocations: 4 kB / 426.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005179/0.1537, allocations: 119.9 kB / 427 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.699e-05/0.1538, allocations: 12.12 kB / 427 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/0.1542, allocations: 23.94 kB / 427.1 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.644e-05/0.1543, allocations: 20 kB / 427.1 MB, free: 4.488 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.001292/0.1555, allocations: 0.9192 MB / 428 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000378/0.1559, allocations: 282.1 kB / 428.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.1574, allocations: 0.7824 MB / 429.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.1574, allocations: 4 kB / 429.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.1574, allocations: 4 kB / 429.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1574, allocations: 0 / 429.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001766/0.1592, allocations: 1.473 MB / 430.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1592, allocations: 3.938 kB / 430.6 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004452/0.1596, allocations: 91.89 kB / 430.6 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003342/0.16, allocations: 88.8 kB / 430.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.2e-05/0.16, allocations: 11.98 kB / 430.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006396/0.1606, allocations: 0.6305 MB / 431.4 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1606, allocations: 0 / 431.4 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.1623, allocations: 1.075 MB / 432.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.1633, allocations: 0.4991 MB / 432.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001636/0.1635, allocations: 12 kB / 433 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.164, allocations: 24.11 kB / 433 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.612e-05/0.164, allocations: 28.41 kB / 433 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.11e-05/0.1641, allocations: 15.98 kB / 433 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005065/0.1691, allocations: 3.97 MB / 437 MB, free: 10.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1691, allocations: 0 / 437 MB, free: 10.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008732/0.17, allocations: 208 kB / 437.2 MB, free: 10.25 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.003781/0.1738, allocations: 1.93 MB / 439.1 MB, free: 8.281 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008502/0.1746, allocations: 364.8 kB / 439.5 MB, free: 7.926 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1746, allocations: 0 / 439.5 MB, free: 7.926 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004864/0.1751, allocations: 194.9 kB / 439.7 MB, free: 7.734 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.1764, allocations: 199.2 kB / 439.9 MB, free: 7.535 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04313/0.2196, allocations: 19.35 MB / 459.2 MB, free: 4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002112/0.2217, allocations: 1.825 MB / 461 MB, free: 2.141 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007428/0.2224, allocations: 267.6 kB / 461.3 MB, free: 1.875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001334/0.2238, allocations: 0.9366 MB / 462.2 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.2238, allocations: 0 / 462.2 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2613/0.4851, allocations: 38.76 MB / 0.4893 GB, free: 39.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.26/17.75, allocations: 8.562 kB / 0.4893 GB, free: 39.03 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=1e-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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/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.641105957794935]