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.001846/0.001846, allocations: 95.86 kB / 20.96 MB, free: 3.461 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.001923/0.001923, allocations: 153.1 kB / 24.27 MB, free: 164 kB / 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 1.56/1.56, allocations: 173.4 MB / 200.8 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 178] 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.854e-06/1.854e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.992e-05/3.177e-05, allocations: 6.25 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006665/0.006697, allocations: 4.302 MB / 271.6 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003193/0.00989, allocations: 1.562 MB / 273.2 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003219/0.01021, allocations: 11.94 kB / 273.2 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004122/0.01062, allocations: 126.8 kB / 273.3 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00113/0.01175, allocations: 377.4 kB / 273.7 MB, free: 340 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000484/0.01224, allocations: 231.6 kB / 273.9 MB, free: 108 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001244/0.01348, allocations: 1.005 MB / 274.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003225/0.0138, allocations: 154 kB / 275.1 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00084/0.01464, allocations: 0.5574 MB / 275.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005627/0.01521, allocations: 335.1 kB / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.01537, allocations: 96 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004441/0.01582, allocations: 203.9 kB / 276.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002246/0.01604, allocations: 211.3 kB / 276.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003715/0.01641, allocations: 291.3 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001559/0.01797, allocations: 1.223 MB / 278 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.01798, allocations: 0 / 278 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.01798, allocations: 4 kB / 278 MB, free: 12.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.01799, allocations: 0 / 278 MB, free: 12.04 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.002696/0.02068, allocations: 1.181 MB / 279.1 MB, free: 10.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.02073, allocations: 8.922 kB / 279.1 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002478/0.02097, allocations: 132.4 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008261/0.0218, allocations: 463.5 kB / 279.7 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.02194, allocations: 127 kB / 279.8 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002133/0.02215, allocations: 76.69 kB / 279.9 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.02344, allocations: 0.7295 MB / 280.7 MB, free: 9.207 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.583e-05/0.02348, allocations: 3.938 kB / 280.7 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.908e-05/0.02353, allocations: 20 kB / 280.7 MB, free: 9.184 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/0.02356, allocations: 16 kB / 280.7 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.02481, allocations: 0.497 MB / 281.2 MB, free: 8.672 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004153/0.02896, allocations: 2.465 MB / 283.7 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.02999, allocations: 469.2 kB / 284.1 MB, free: 5.629 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005573/0.03054, allocations: 243.8 kB / 284.4 MB, free: 5.383 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.903e-05/0.03058, allocations: 12 kB / 284.4 MB, free: 5.371 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.328e-05/0.03063, allocations: 46.11 kB / 284.4 MB, free: 5.316 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.495e-06/0.03063, allocations: 0 / 284.4 MB, free: 5.316 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.0128/0.04343, allocations: 3.144 MB / 287.6 MB, free: 2.129 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.66e-05/0.04351, allocations: 89.59 kB / 287.6 MB, free: 2.023 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009783/0.04448, allocations: 0.6158 MB / 288.3 MB, free: 1.395 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.483e-05/0.04455, allocations: 37.7 kB / 288.3 MB, free: 1.352 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003477/0.0449, allocations: 391.8 kB / 288.7 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.04515, allocations: 234.1 kB / 288.9 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002771/0.04542, allocations: 147.9 kB / 289 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.1043/0.1497, allocations: 0.5752 MB / 289.6 MB, free: 31.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006427/0.1504, allocations: 229.3 kB / 289.8 MB, free: 31.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005542/0.1509, allocations: 389.7 kB / 290.2 MB, free: 31.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.152, allocations: 0.6497 MB / 290.9 MB, free: 31.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.152, allocations: 1.703 kB / 290.9 MB, free: 31.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001474/0.1535, allocations: 0.7516 MB / 291.6 MB, free: 31.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.1535, allocations: 7.688 kB / 291.6 MB, free: 31.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.1535, allocations: 3.156 kB / 291.6 MB, free: 31.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003/0.1538, allocations: 55.78 kB / 291.7 MB, free: 31.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007747/0.1546, allocations: 168.9 kB / 291.9 MB, free: 31.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008486/0.1554, allocations: 1.824 MB / 293.7 MB, free: 29.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005495/0.156, allocations: 30.56 kB / 293.7 MB, free: 29.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.464e-05/0.156, allocations: 32.33 kB / 293.7 MB, free: 29.53 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.000264/0.1563, allocations: 245.8 kB / 294 MB, free: 29.31 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.1564, allocations: 80.06 kB / 294.1 MB, free: 29.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.1581, allocations: 0.832 MB / 294.9 MB, free: 28.95 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.1581, allocations: 6.188 kB / 294.9 MB, free: 28.95 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.1581, allocations: 1.469 kB / 294.9 MB, free: 28.95 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.1581, allocations: 7.375 kB / 294.9 MB, free: 28.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00342/0.1615, allocations: 1.739 MB / 296.6 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1615, allocations: 1.312 kB / 296.7 MB, free: 28.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000498/0.162, allocations: 102.5 kB / 296.8 MB, free: 28.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002059/0.1641, allocations: 413.1 kB / 297.2 MB, free: 28.01 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.077e-05/0.1642, allocations: 16.97 kB / 297.2 MB, free: 28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004581/0.1687, allocations: 3.604 MB / 300.8 MB, free: 25.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.1687, allocations: 1 kB / 300.8 MB, free: 25.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002687/0.1714, allocations: 1.452 MB / 302.2 MB, free: 24.51 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003023/0.1717, allocations: 134.6 kB / 302.4 MB, free: 24.42 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.366e-05/0.1718, allocations: 17.08 kB / 302.4 MB, free: 24.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005449/0.1724, allocations: 34.58 kB / 302.4 MB, free: 24.4 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.1725, allocations: 54.34 kB / 302.5 MB, free: 24.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.404e-05/0.1726, allocations: 18.62 kB / 302.5 MB, free: 24.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004614/0.173, allocations: 424.6 kB / 302.9 MB, free: 24.17 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.173, allocations: 1 kB / 302.9 MB, free: 24.17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000757/0.1738, allocations: 191.1 kB / 303.1 MB, free: 24.15 MB / 266.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.0002794/0.1741, allocations: 153 kB / 303.2 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.1754, allocations: 0.7963 MB / 304 MB, free: 23.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1754, allocations: 2.406 kB / 304 MB, free: 23.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008146/0.1762, allocations: 0.5875 MB / 304.6 MB, free: 23.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006029/0.1768, allocations: 93.56 kB / 304.7 MB, free: 23.28 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.179, allocations: 1.384 MB / 306.1 MB, free: 22.49 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.1793, allocations: 303.2 kB / 306.4 MB, free: 22.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002564/0.1795, allocations: 67.7 kB / 306.5 MB, free: 22.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/0.1797, allocations: 58.84 kB / 306.5 MB, free: 22.36 MB / 266.7 MB Notification: Performance of SimCode: time 9.41e-07/0.1797, allocations: 0 / 306.5 MB, free: 22.36 MB / 266.7 MB Notification: Performance of Templates: time 0.01382/0.1935, allocations: 9.692 MB / 316.2 MB, free: 13.59 MB / 266.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.909646208980121]