Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001291/0.001291, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001252/0.001252, allocations: 147.4 kB / 24.89 MB, free: 8.742 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.9188/0.9188, allocations: 173.4 MB / 201.5 MB, free: 8.738 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.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 268.5 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.052e-05/1.165e-05, allocations: 2.312 kB / 268.5 MB, free: 6.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.003056/0.003068, allocations: 3.379 MB / 271.8 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.004641, allocations: 1.461 MB / 273.3 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.004776, allocations: 8 kB / 273.3 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00187/0.006646, allocations: 2.666 MB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002803/0.006927, allocations: 190.5 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.007328, allocations: 315.2 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.008346, allocations: 1.595 MB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.008484, allocations: 104.3 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000671/0.009155, allocations: 487.4 kB / 278.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.009398, allocations: 299.2 kB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.168e-05/0.00945, allocations: 44 kB / 279 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.009556, allocations: 79.94 kB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003904/0.009946, allocations: 0.861 MB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002762/0.01022, allocations: 474.1 kB / 280.4 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008814/0.0111, allocations: 1.491 MB / 281.9 MB, free: 8.605 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-06/0.01111, allocations: 0 / 281.9 MB, free: 8.605 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.01111, allocations: 0 / 281.9 MB, free: 8.605 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.644e-05/0.01112, allocations: 3.938 kB / 281.9 MB, free: 8.602 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.002071/0.01319, allocations: 2.642 MB / 284.5 MB, free: 5.914 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.738e-05/0.01322, allocations: 8.922 kB / 284.5 MB, free: 5.906 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.01339, allocations: 180.7 kB / 284.7 MB, free: 5.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008143/0.01421, allocations: 1.117 MB / 285.8 MB, free: 4.574 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.688e-05/0.01427, allocations: 106.7 kB / 285.9 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.967e-05/0.01437, allocations: 60.56 kB / 286 MB, free: 4.395 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.01466, allocations: 363 kB / 286.3 MB, free: 4.008 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.01467, allocations: 0 / 286.3 MB, free: 4.008 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.01469, allocations: 16 kB / 286.3 MB, free: 3.992 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.0147, allocations: 8 kB / 286.4 MB, free: 3.984 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002271/0.01493, allocations: 142.8 kB / 286.5 MB, free: 3.848 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.01636, allocations: 1.416 MB / 287.9 MB, free: 2.371 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.01657, allocations: 205 kB / 288.1 MB, free: 2.152 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.162e-05/0.01665, allocations: 82.27 kB / 288.2 MB, free: 2.066 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.01668, allocations: 7.859 kB / 288.2 MB, free: 2.059 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.0167, allocations: 42.56 kB / 288.2 MB, free: 2.008 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.633e-06/0.0167, allocations: 0 / 288.2 MB, free: 2.008 MB / 266.7 MB Notification: Performance of matching and sorting (n=48): time 0.001877/0.01858, allocations: 1.17 MB / 289.4 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.01861, allocations: 85.55 kB / 289.5 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1024/0.1211, allocations: 2.916 MB / 292.4 MB, free: 26.87 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.985e-05/0.1211, allocations: 35.55 kB / 292.4 MB, free: 26.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003211/0.1214, allocations: 0.5296 MB / 293 MB, free: 26.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.52e-05/0.1215, allocations: 176.2 kB / 293.1 MB, free: 26.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.222e-05/0.1216, allocations: 88.56 kB / 293.2 MB, free: 26.72 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.909e-05/0.1217, allocations: 327.6 kB / 293.6 MB, free: 26.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.103e-05/0.1217, allocations: 46.48 kB / 293.6 MB, free: 26.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.1218, allocations: 136.1 kB / 293.7 MB, free: 26.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002223/0.1221, allocations: 221.4 kB / 293.9 MB, free: 26.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1221, allocations: 0.5156 kB / 293.9 MB, free: 26.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004567/0.1225, allocations: 370.2 kB / 294.3 MB, free: 26.22 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1225, allocations: 5.406 kB / 294.3 MB, free: 26.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1226, allocations: 2.156 kB / 294.3 MB, free: 26.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.1226, allocations: 9.625 kB / 294.3 MB, free: 26.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003035/0.1229, allocations: 113.1 kB / 294.4 MB, free: 26.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.1229, allocations: 9.734 kB / 294.4 MB, free: 26.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/0.1231, allocations: 13.11 kB / 294.5 MB, free: 26.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.1231, allocations: 20.83 kB / 294.5 MB, free: 26.22 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.0001946/0.1233, allocations: 133.3 kB / 294.6 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001771/0.1235, allocations: 162.4 kB / 294.8 MB, free: 26.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006079/0.1241, allocations: 478.4 kB / 295.2 MB, free: 26.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1241, allocations: 9.344 kB / 295.2 MB, free: 26.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1241, allocations: 1.031 kB / 295.2 MB, free: 26.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1241, allocations: 2.625 kB / 295.2 MB, free: 26.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007636/0.1249, allocations: 0.7168 MB / 296 MB, free: 25.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1249, allocations: 5.422 kB / 296 MB, free: 25.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.1251, allocations: 89.75 kB / 296.1 MB, free: 25.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001782/0.1253, allocations: 72.3 kB / 296.1 MB, free: 25.92 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.889e-05/0.1253, allocations: 11.62 kB / 296.1 MB, free: 25.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004283/0.1257, allocations: 0.828 MB / 297 MB, free: 25.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1257, allocations: 1.156 kB / 297 MB, free: 25.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005967/0.1263, allocations: 0.6577 MB / 297.6 MB, free: 25.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003121/0.1266, allocations: 328.5 kB / 297.9 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.1267, allocations: 18.95 kB / 298 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.127, allocations: 13.25 kB / 298 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.29e-05/0.127, allocations: 31.86 kB / 298 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.127, allocations: 10.2 kB / 298 MB, free: 25.01 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001349/0.1284, allocations: 1.45 MB / 299.5 MB, free: 24.92 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1284, allocations: 0 / 299.5 MB, free: 24.92 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004093/0.1288, allocations: 208.1 kB / 299.7 MB, free: 24.91 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.0009734/0.1298, allocations: 0.5086 MB / 300.2 MB, free: 24.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.13, allocations: 212.2 kB / 300.4 MB, free: 24.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.06e-05/0.13, allocations: 32.69 kB / 300.4 MB, free: 24.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001664/0.1302, allocations: 135.3 kB / 300.6 MB, free: 24.76 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005519/0.1308, allocations: 180.9 kB / 300.7 MB, free: 24.74 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/0.1339, allocations: 3.869 MB / 304.6 MB, free: 23.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.1343, allocations: 0.5494 MB / 305.1 MB, free: 22.92 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002209/0.1345, allocations: 167.6 kB / 305.3 MB, free: 22.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000276/0.1348, allocations: 224.5 kB / 305.5 MB, free: 22.84 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.1348, allocations: 0 / 305.5 MB, free: 22.84 MB / 266.7 MB Notification: Performance of Templates: time 0.01997/0.1548, allocations: 16.04 MB / 321.6 MB, free: 7.84 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.976317089982331]