Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 195.1 kB / 14.16 MB, free: 1.152 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 225.4 MB / 240.1 MB, free: 15.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008673/0.0008673, allocations: 86.59 kB / 292.1 MB, free: 5.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.332e-05/3.344e-05, allocations: 7.984 kB / 350.6 MB, free: 2.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1147, allocations: 51.48 MB / 402 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3262/0.441, allocations: 93.84 MB / 495.9 MB, free: 11.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.4412, allocations: 79.89 kB / 496 MB, free: 11.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04627/0.4875, allocations: 16 MB / 0.5 GB, free: 13.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4875, allocations: 0 / 0.5 GB, free: 13.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.425e-05/0.4876, allocations: 16 kB / 0.5 GB, free: 13.21 MB / 378.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.002368/0.49, allocations: 0.8453 MB / 0.5008 GB, free: 12.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.4901, allocations: 12.03 kB / 0.5008 GB, free: 12.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004626/0.4905, allocations: 91.05 kB / 0.5009 GB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009995/0.4916, allocations: 494.9 kB / 0.5014 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.4917, allocations: 78.62 kB / 0.5014 GB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002416/0.4919, allocations: 67.97 kB / 0.5015 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.4932, allocations: 0.5669 MB / 0.5021 GB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.4932, allocations: 3.906 kB / 0.5021 GB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.088e-05/0.4933, allocations: 27.94 kB / 0.5021 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.279e-05/0.4933, allocations: 16 kB / 0.5021 GB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009227/0.4942, allocations: 477.2 kB / 0.5026 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003768/0.498, allocations: 2.329 MB / 0.5048 GB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006914/0.4987, allocations: 424.8 kB / 0.5052 GB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004078/0.4991, allocations: 235.3 kB / 0.5055 GB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.286e-05/0.4992, allocations: 11.98 kB / 0.5055 GB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.4992, allocations: 42.55 kB / 0.5055 GB, free: 7.277 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 1.994e-06/0.4992, allocations: 0 / 0.5055 GB, free: 7.277 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.01141/0.5107, allocations: 3.012 MB / 0.5085 GB, free: 4.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.5107, allocations: 85.67 kB / 0.5085 GB, free: 4.102 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007485/0.5115, allocations: 487.8 kB / 0.509 GB, free: 3.621 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.552e-05/0.5116, allocations: 33.7 kB / 0.509 GB, free: 3.582 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002359/0.5118, allocations: 316.4 kB / 0.5093 GB, free: 3.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.512, allocations: 212.8 kB / 0.5095 GB, free: 3.059 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-05/0.5121, allocations: 16 kB / 0.5096 GB, free: 3.043 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.5122, allocations: 370.7 kB / 0.5099 GB, free: 2.672 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004011/0.5126, allocations: 217.5 kB / 0.5101 GB, free: 2.461 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004461/0.5131, allocations: 316.9 kB / 0.5104 GB, free: 2.117 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004465/0.5136, allocations: 259.2 kB / 0.5107 GB, free: 1.863 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5136, allocations: 0 / 0.5107 GB, free: 1.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006821/0.5204, allocations: 1.791 MB / 0.5124 GB, free: 64 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.5204, allocations: 6.344 kB / 0.5124 GB, free: 60 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.5205, allocations: 4 kB / 0.5124 GB, free: 56 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006452/0.5269, allocations: 1.164 MB / 0.5136 GB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004824/0.5274, allocations: 91.89 kB / 0.5136 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/0.5419, allocations: 5.78 MB / 0.5193 GB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009464/0.5429, allocations: 44.03 kB / 0.5193 GB, free: 8.832 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.5431, allocations: 27.98 kB / 0.5194 GB, free: 8.805 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.0002396/0.5433, allocations: 128.9 kB / 0.5195 GB, free: 8.672 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002702/0.5436, allocations: 55.34 kB / 0.5195 GB, free: 8.617 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/0.5455, allocations: 0.7788 MB / 0.5203 GB, free: 7.824 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.5455, allocations: 7.953 kB / 0.5203 GB, free: 7.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.5455, allocations: 0 / 0.5203 GB, free: 7.816 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.5455, allocations: 7.984 kB / 0.5203 GB, free: 7.809 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004051/0.5496, allocations: 1.835 MB / 0.5221 GB, free: 5.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.5496, allocations: 0 / 0.5221 GB, free: 5.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005641/0.5502, allocations: 116.5 kB / 0.5222 GB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001686/0.5519, allocations: 338.1 kB / 0.5225 GB, free: 5.465 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.458e-05/0.552, allocations: 12 kB / 0.5225 GB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0046/0.5566, allocations: 2.792 MB / 0.5253 GB, free: 2.531 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.5566, allocations: 3.984 kB / 0.5253 GB, free: 2.527 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/0.5593, allocations: 1.283 MB / 0.5265 GB, free: 1.219 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004272/0.5597, allocations: 212.5 kB / 0.5267 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.5599, allocations: 21.86 kB / 0.5268 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000657/0.5606, allocations: 47.97 kB / 0.5268 GB, free: 0.9258 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.5607, allocations: 48.44 kB / 0.5268 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.253e-05/0.5608, allocations: 23.98 kB / 0.5269 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005717/0.5613, allocations: 377.6 kB / 0.5272 GB, free: 500 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5614, allocations: 0 / 0.5272 GB, free: 500 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009996/0.5624, allocations: 223.9 kB / 0.5274 GB, free: 276 kB / 394.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.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004012/0.5628, allocations: 169.8 kB / 0.5276 GB, free: 100 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.5644, allocations: 0.8173 MB / 0.5284 GB, free: 15.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5644, allocations: 0 / 0.5284 GB, free: 15.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000826/0.5652, allocations: 493.5 kB / 0.5289 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006135/0.5658, allocations: 81.02 kB / 0.529 GB, free: 14.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.5682, allocations: 1.112 MB / 0.53 GB, free: 13.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005466/0.5688, allocations: 0.9238 MB / 0.5309 GB, free: 12.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003706/0.5692, allocations: 60.75 kB / 0.531 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.5694, allocations: 43.42 kB / 0.531 GB, free: 12.5 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5694, allocations: 0 / 0.531 GB, free: 12.5 MB / 410.7 MB Notification: Performance of Templates: time 0.02227/0.5916, allocations: 12.4 MB / 0.5431 GB, free: 300 kB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches