Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.00128/0.00128, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001516/0.001516, allocations: 141.9 kB / 25.59 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9582/0.9582, allocations: 173.4 MB / 202.3 MB, free: 8.312 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: 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.0.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.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.405e-05/2.546e-05, allocations: 9.547 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004455/0.00448, allocations: 4.262 MB / 273.5 MB, free: 5.492 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.006865, allocations: 1.547 MB / 275 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000379/0.007244, allocations: 11.94 kB / 275 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003088/0.007553, allocations: 131.4 kB / 275.2 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006947/0.008248, allocations: 374 kB / 275.5 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003655/0.008613, allocations: 235.6 kB / 275.7 MB, free: 3.207 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007922/0.009405, allocations: 1.005 MB / 276.8 MB, free: 2.199 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.009646, allocations: 158 kB / 276.9 MB, free: 2.039 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007138/0.01036, allocations: 0.5535 MB / 277.5 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003821/0.01074, allocations: 335.1 kB / 277.8 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.232e-05/0.01083, allocations: 95.98 kB / 277.9 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002976/0.01113, allocations: 207.9 kB / 278.1 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.01125, allocations: 203.3 kB / 278.3 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000206/0.01145, allocations: 291.3 kB / 278.6 MB, free: 384 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007214/0.01218, allocations: 0.7047 MB / 279.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.01218, allocations: 0 / 279.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.01218, allocations: 4 kB / 279.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.01219, allocations: 0 / 279.3 MB, free: 15.66 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001449/0.01364, allocations: 1.134 MB / 280.4 MB, free: 14.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.01367, allocations: 8.031 kB / 280.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.01382, allocations: 132.4 kB / 280.5 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004362/0.01426, allocations: 422.3 kB / 281 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-05/0.01434, allocations: 127 kB / 281.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.01448, allocations: 72.62 kB / 281.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/0.01499, allocations: 0.531 MB / 281.7 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.015, allocations: 7.875 kB / 281.7 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/0.01504, allocations: 20 kB / 281.7 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.01505, allocations: 16 kB / 281.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002976/0.01534, allocations: 234.1 kB / 282 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.01727, allocations: 1.969 MB / 283.9 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000348/0.01761, allocations: 286.4 kB / 284.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.01777, allocations: 131.7 kB / 284.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.0178, allocations: 8 kB / 284.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.01782, allocations: 49.31 kB / 284.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.054e-06/0.01782, allocations: 0 / 284.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.005107/0.02293, allocations: 2.202 MB / 286.6 MB, free: 8.035 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.02296, allocations: 89.61 kB / 286.7 MB, free: 7.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003228/0.02329, allocations: 474.3 kB / 287.1 MB, free: 7.449 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.02333, allocations: 37.7 kB / 287.2 MB, free: 7.406 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.0235, allocations: 379.5 kB / 287.6 MB, free: 7.031 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.02365, allocations: 218.1 kB / 287.8 MB, free: 6.816 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.02379, allocations: 123.9 kB / 287.9 MB, free: 6.688 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.02394, allocations: 0.5468 MB / 288.4 MB, free: 6.129 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.02407, allocations: 77.23 kB / 288.5 MB, free: 6.055 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.02425, allocations: 215.6 kB / 288.7 MB, free: 5.801 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.0246, allocations: 340.8 kB / 289.1 MB, free: 5.422 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.0246, allocations: 0 / 289.1 MB, free: 5.422 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0005795/0.02518, allocations: 456.6 kB / 289.5 MB, free: 4.965 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.0252, allocations: 12.02 kB / 289.5 MB, free: 4.953 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.02521, allocations: 4 kB / 289.5 MB, free: 4.949 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.02538, allocations: 43.66 kB / 289.6 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/0.02578, allocations: 163.8 kB / 289.7 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007999/0.02658, allocations: 1.75 MB / 291.5 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.02684, allocations: 31.98 kB / 291.5 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.02687, allocations: 19.98 kB / 291.5 MB, free: 2.828 MB / 266.7 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.0003253/0.0272, allocations: 196.4 kB / 291.7 MB, free: 2.625 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.02731, allocations: 83.56 kB / 291.8 MB, free: 2.543 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006483/0.02796, allocations: 0.4947 MB / 292.3 MB, free: 2.039 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.02797, allocations: 4 kB / 292.3 MB, free: 2.035 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.02797, allocations: 4 kB / 292.3 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.02797, allocations: 3.984 kB / 292.3 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.02965, allocations: 1.167 MB / 293.5 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.02965, allocations: 4 kB / 293.5 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002535/0.02991, allocations: 99.89 kB / 293.6 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00091/0.03082, allocations: 335.2 kB / 293.9 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.066e-05/0.03086, allocations: 15.98 kB / 293.9 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002266/0.03312, allocations: 2.737 MB / 296.6 MB, free: 13.53 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.03312, allocations: 4 kB / 296.6 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.03422, allocations: 0.9004 MB / 297.5 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000182/0.0344, allocations: 127.5 kB / 297.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.556e-05/0.03446, allocations: 16 kB / 297.7 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002628/0.03472, allocations: 35.97 kB / 297.7 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.03483, allocations: 48.56 kB / 297.8 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.03485, allocations: 15.98 kB / 297.8 MB, free: 12.36 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002035/0.03506, allocations: 307 kB / 298.1 MB, free: 12.06 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03506, allocations: 7.938 kB / 298.1 MB, free: 12.05 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005697/0.03563, allocations: 183.9 kB / 298.3 MB, free: 11.88 MB / 282.7 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.0002392/0.03587, allocations: 155.1 kB / 298.4 MB, free: 11.71 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007298/0.0366, allocations: 0.4923 MB / 298.9 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.0366, allocations: 0 / 298.9 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003787/0.03698, allocations: 442 kB / 299.3 MB, free: 10.74 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004141/0.03739, allocations: 92.62 kB / 299.4 MB, free: 10.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.03928, allocations: 1.259 MB / 300.7 MB, free: 9.355 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001361/0.03942, allocations: 144.3 kB / 300.8 MB, free: 9.191 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002361/0.03965, allocations: 68.66 kB / 300.9 MB, free: 9.125 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.03994, allocations: 178.1 kB / 301.1 MB, free: 8.949 MB / 282.7 MB Notification: Performance of SimCode: time 2.344e-06/0.03995, allocations: 0 / 301.1 MB, free: 8.949 MB / 282.7 MB Notification: Performance of Templates: time 0.01575/0.05569, allocations: 10.5 MB / 311.6 MB, free: 14.57 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.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.9571101698093116]