Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.001338/0.001338, allocations: 116.5 kB / 18.45 MB, free: 4.562 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.001369/0.001369, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.442/1.442, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 43.94 kB / 374.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.119, allocations: 53.33 MB / 427.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.2275/0.3466, allocations: 4.391 MB / 431.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003146/0.3497, allocations: 1.657 MB / 433.5 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003522/0.3501, allocations: 12.94 kB / 433.5 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003682/0.3504, allocations: 131.8 kB / 433.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007788/0.3512, allocations: 365.2 kB / 434 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004249/0.3516, allocations: 242.6 kB / 434.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007999/0.3524, allocations: 0.9836 MB / 435.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002668/0.3527, allocations: 155.8 kB / 435.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004442/0.3531, allocations: 394.5 kB / 435.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004558/0.3536, allocations: 427 kB / 436.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.3537, allocations: 96.28 kB / 436.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004074/0.3541, allocations: 217.8 kB / 436.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.3543, allocations: 205.3 kB / 436.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003288/0.3546, allocations: 412.8 kB / 437.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001426/0.356, allocations: 1.173 MB / 438.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.356, allocations: 1.438 kB / 438.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.356, allocations: 0 / 438.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.3561, allocations: 3.281 kB / 438.3 MB, free: 6.68 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002458/0.3585, allocations: 1.117 MB / 439.4 MB, free: 5.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.3585, allocations: 9.156 kB / 439.4 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002547/0.3588, allocations: 94.44 kB / 439.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007261/0.3595, allocations: 0.5222 MB / 440 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.638e-05/0.3596, allocations: 73.59 kB / 440.1 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/0.3598, allocations: 65.98 kB / 440.2 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.3609, allocations: 0.61 MB / 440.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.3609, allocations: 2.125 kB / 440.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.739e-05/0.361, allocations: 28.34 kB / 440.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.361, allocations: 14.44 kB / 440.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.3621, allocations: 0.5237 MB / 441.3 MB, free: 4.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003147/0.3652, allocations: 2.288 MB / 443.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.3663, allocations: 459.1 kB / 444.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005143/0.3668, allocations: 248.2 kB / 444.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.3669, allocations: 4.719 kB / 444.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.3669, allocations: 39.08 kB / 444.4 MB, free: 3.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.673e-06/0.3669, allocations: 0 / 444.4 MB, free: 3.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01308/0.38, allocations: 3.57 MB / 447.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.38, allocations: 86.77 kB / 448 MB, free: 1.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007923/0.3808, allocations: 0.5337 MB / 448.6 MB, free: 1.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.845e-05/0.3809, allocations: 36.42 kB / 448.6 MB, free: 1.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.381, allocations: 324.9 kB / 448.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.3812, allocations: 220 kB / 449.1 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/0.3814, allocations: 112.5 kB / 449.2 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/0.3815, allocations: 365.2 kB / 449.6 MB, free: 428 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005798/0.3821, allocations: 247 kB / 449.8 MB, free: 328 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000606/0.3827, allocations: 349.3 kB / 450.2 MB, free: 128 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.3841, allocations: 0.6282 MB / 450.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3841, allocations: 1.156 kB / 450.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001719/0.3858, allocations: 0.7437 MB / 451.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.3858, allocations: 11.84 kB / 451.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.3859, allocations: 1.375 kB / 451.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.386, allocations: 30.44 kB / 451.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008178/0.3869, allocations: 167.4 kB / 451.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.3882, allocations: 1.436 MB / 453.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006665/0.3889, allocations: 40.22 kB / 453.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.204e-05/0.389, allocations: 28.23 kB / 453.3 MB, free: 14.03 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003409/0.3893, allocations: 199 kB / 453.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.3895, allocations: 69.28 kB / 453.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001992/0.3915, allocations: 0.827 MB / 454.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.3915, allocations: 10.81 kB / 454.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.3915, allocations: 0 / 454.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.3915, allocations: 6.953 kB / 454.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004042/0.3955, allocations: 1.848 MB / 456.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3955, allocations: 1.938 kB / 456.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005201/0.3961, allocations: 106.3 kB / 456.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002442/0.3985, allocations: 472 kB / 456.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.218e-05/0.3986, allocations: 12.69 kB / 456.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005506/0.4041, allocations: 3.158 MB / 459.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4041, allocations: 4.062 kB / 459.9 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003167/0.4072, allocations: 1.359 MB / 461.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003902/0.4076, allocations: 214.7 kB / 461.5 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.058e-05/0.4077, allocations: 11.28 kB / 461.5 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006163/0.4083, allocations: 40.62 kB / 461.6 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.4085, allocations: 50.73 kB / 461.6 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.581e-05/0.4085, allocations: 16.84 kB / 461.6 MB, free: 8.734 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005374/0.4091, allocations: 397 kB / 462 MB, free: 8.496 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4091, allocations: 0 / 462 MB, free: 8.496 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008795/0.4099, allocations: 189.6 kB / 462.2 MB, free: 8.469 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003031/0.4102, allocations: 149 kB / 462.4 MB, free: 8.359 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.4118, allocations: 0.7099 MB / 463.1 MB, free: 7.957 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4118, allocations: 1.156 kB / 463.1 MB, free: 7.957 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009764/0.4128, allocations: 0.5015 MB / 463.6 MB, free: 7.641 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006818/0.4135, allocations: 92.12 kB / 463.7 MB, free: 7.594 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002955/0.4164, allocations: 1.519 MB / 465.2 MB, free: 6.613 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000581/0.417, allocations: 0.9051 MB / 466.1 MB, free: 5.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/0.4172, allocations: 57.62 kB / 466.1 MB, free: 5.801 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4172, allocations: 0 / 466.1 MB, free: 5.801 MB / 366.1 MB Notification: Performance of Templates: time 0.01755/0.4348, allocations: 11.91 MB / 478 MB, free: 12.84 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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: 7.882151942991186]