Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009859/0.0009859, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001024/0.001024, allocations: 168.8 kB / 24.82 MB, free: 9.27 MB / 18.57 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 0.9462/0.9462, allocations: 177.1 MB / 205.3 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] 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.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.305e-05/2.471e-05, allocations: 9.969 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004915/0.00494, allocations: 3.402 MB / 276.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003045/0.007985, allocations: 1.624 MB / 278.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003562/0.008341, allocations: 7.938 kB / 278.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003436/0.01178, allocations: 2.67 MB / 281.1 MB, free: 9.582 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007226/0.0125, allocations: 238.2 kB / 281.3 MB, free: 9.348 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007506/0.01325, allocations: 323.2 kB / 281.6 MB, free: 9.031 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002234/0.01548, allocations: 1.836 MB / 283.5 MB, free: 7.188 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.0157, allocations: 96.3 kB / 283.6 MB, free: 7.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009607/0.01666, allocations: 0.4939 MB / 284.1 MB, free: 6.629 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003017/0.01696, allocations: 295.3 kB / 284.4 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-05/0.01702, allocations: 44 kB / 284.4 MB, free: 6.297 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001714/0.01719, allocations: 99.84 kB / 284.5 MB, free: 6.199 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004469/0.01764, allocations: 0.861 MB / 285.4 MB, free: 5.336 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004907/0.01813, allocations: 474.1 kB / 285.8 MB, free: 4.871 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.01925, allocations: 1.502 MB / 287.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.01926, allocations: 0 / 287.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.01926, allocations: 0 / 287.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.373e-05/0.01932, allocations: 4 kB / 287.3 MB, free: 3.359 MB / 266.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.00264/0.02196, allocations: 3.043 MB / 290.4 MB, free: 264 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.022, allocations: 11.98 kB / 290.4 MB, free: 252 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1363/0.1583, allocations: 336.7 kB / 290.7 MB, free: 23.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/0.1599, allocations: 1.209 MB / 291.9 MB, free: 22.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.899e-05/0.16, allocations: 111.3 kB / 292 MB, free: 22.63 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.1601, allocations: 51.09 kB / 292.1 MB, free: 22.63 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004008/0.1605, allocations: 361.9 kB / 292.4 MB, free: 22.47 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.1605, allocations: 0.7812 kB / 292.4 MB, free: 22.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.1605, allocations: 14.88 kB / 292.5 MB, free: 22.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.1606, allocations: 9.906 kB / 292.5 MB, free: 22.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002276/0.1608, allocations: 164.8 kB / 292.6 MB, free: 22.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002335/0.1631, allocations: 2.048 MB / 294.7 MB, free: 21.72 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.1634, allocations: 231.1 kB / 294.9 MB, free: 21.65 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.1635, allocations: 94.58 kB / 295 MB, free: 21.62 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.1635, allocations: 14.14 kB / 295 MB, free: 21.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.1636, allocations: 40.75 kB / 295 MB, free: 21.58 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.355e-06/0.1636, allocations: 0 / 295 MB, free: 21.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=48): time 0.002195/0.1658, allocations: 1.247 MB / 296.3 MB, free: 21.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.1658, allocations: 83.36 kB / 296.4 MB, free: 21.1 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/0.169, allocations: 3.321 MB / 299.7 MB, free: 20.71 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.169, allocations: 34.77 kB / 299.7 MB, free: 20.67 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008646/0.1698, allocations: 1.547 MB / 301.3 MB, free: 19.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.1699, allocations: 173.8 kB / 301.4 MB, free: 19.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.17, allocations: 98.5 kB / 301.5 MB, free: 19.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.818e-05/0.1701, allocations: 0.4952 MB / 302 MB, free: 18.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.687e-05/0.1702, allocations: 53.92 kB / 302.1 MB, free: 18.81 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.1703, allocations: 167.2 kB / 302.2 MB, free: 18.69 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.1705, allocations: 246.3 kB / 302.5 MB, free: 18.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1705, allocations: 1 kB / 302.5 MB, free: 18.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000684/0.1712, allocations: 0.5607 MB / 303.1 MB, free: 18.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.1712, allocations: 5.781 kB / 303.1 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.1713, allocations: 6.906 kB / 303.1 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.1713, allocations: 9.188 kB / 303.1 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003277/0.1716, allocations: 121.5 kB / 303.2 MB, free: 18.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.1716, allocations: 4.844 kB / 303.2 MB, free: 18.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000339/0.172, allocations: 14.14 kB / 303.2 MB, free: 18.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.172, allocations: 18.41 kB / 303.2 MB, free: 18.27 MB / 266.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.0002043/0.1722, allocations: 182.6 kB / 303.4 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002228/0.1724, allocations: 300.9 kB / 303.7 MB, free: 17.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007332/0.1731, allocations: 0.5389 MB / 304.2 MB, free: 17.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.116e-06/0.1731, allocations: 6.031 kB / 304.2 MB, free: 17.71 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.1731, allocations: 0 / 304.2 MB, free: 17.71 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.1732, allocations: 8.688 kB / 304.3 MB, free: 17.71 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/0.1744, allocations: 1.016 MB / 305.3 MB, free: 17.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.1744, allocations: 5.391 kB / 305.3 MB, free: 17.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.1746, allocations: 89.62 kB / 305.4 MB, free: 17.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002043/0.1749, allocations: 84.3 kB / 305.4 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.1749, allocations: 13.91 kB / 305.5 MB, free: 17.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002618/0.1751, allocations: 0.8393 MB / 306.3 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1751, allocations: 0 / 306.3 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006653/0.1758, allocations: 0.9417 MB / 307.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/0.1761, allocations: 356.8 kB / 307.6 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.055e-05/0.1762, allocations: 10.66 kB / 307.6 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.1764, allocations: 13.95 kB / 307.6 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.034e-05/0.1765, allocations: 41.16 kB / 307.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.1765, allocations: 17.31 kB / 307.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001276/0.1778, allocations: 1.85 MB / 309.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1778, allocations: 0 / 309.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004289/0.1782, allocations: 200 kB / 309.7 MB, free: 14.81 MB / 266.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.0008299/0.179, allocations: 403.2 kB / 310.1 MB, free: 14.63 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002674/0.1793, allocations: 238.3 kB / 310.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1793, allocations: 0 / 310.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001598/0.1795, allocations: 147.2 kB / 310.5 MB, free: 14.33 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006274/0.1801, allocations: 194.5 kB / 310.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003274/0.1834, allocations: 3.963 MB / 314.6 MB, free: 10.42 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.1837, allocations: 0.5512 MB / 315.2 MB, free: 9.844 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002664/0.184, allocations: 175.8 kB / 315.4 MB, free: 9.668 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002849/0.1843, allocations: 254.2 kB / 315.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of SimCode: time 1.874e-06/0.1843, allocations: 0 / 315.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of Templates: time 0.02569/0.21, allocations: 16.13 MB / 331.7 MB, free: 9.602 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9632444120943546]