Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.002071/0.002071, 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.002018/0.002018, allocations: 149.1 kB / 24.26 MB, free: 168 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.516/1.516, allocations: 173.4 MB / 200.8 MB, free: 9.332 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.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.605e-05/2.793e-05, allocations: 5.828 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.008206/0.008234, allocations: 5.398 MB / 272.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003827/0.01206, allocations: 1.763 MB / 274.5 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003853/0.01245, allocations: 20 kB / 274.5 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004279/0.01673, allocations: 1.707 MB / 276.2 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001943/0.01867, allocations: 0.7419 MB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006904/0.01936, allocations: 279.4 kB / 277.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00105/0.02041, allocations: 0.8363 MB / 278.1 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001289/0.0217, allocations: 0.7432 MB / 278.8 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007139/0.02241, allocations: 0.5183 MB / 279.3 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005892/0.023, allocations: 375 kB / 279.7 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.02312, allocations: 80 kB / 279.8 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005287/0.02365, allocations: 235.6 kB / 280 MB, free: 9.988 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.02384, allocations: 191.2 kB / 280.2 MB, free: 9.801 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003518/0.02419, allocations: 291.2 kB / 280.5 MB, free: 9.516 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001542/0.02573, allocations: 1.191 MB / 281.7 MB, free: 8.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.02574, allocations: 0 / 281.7 MB, free: 8.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.02574, allocations: 0 / 281.7 MB, free: 8.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.02575, allocations: 0 / 281.7 MB, free: 8.32 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003705/0.02945, allocations: 1.459 MB / 283.1 MB, free: 6.824 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.0295, allocations: 8.922 kB / 283.1 MB, free: 6.816 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004944/0.03444, allocations: 0.8431 MB / 284 MB, free: 5.973 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006604/0.0351, allocations: 363.4 kB / 284.3 MB, free: 5.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.823e-05/0.03518, allocations: 70.38 kB / 284.4 MB, free: 5.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.03534, allocations: 96.38 kB / 284.5 MB, free: 5.426 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/0.03725, allocations: 1.055 MB / 285.5 MB, free: 4.348 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/0.03728, allocations: 192 / 285.5 MB, free: 4.348 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.5e-05/0.03738, allocations: 52.3 kB / 285.6 MB, free: 4.297 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.874e-05/0.03741, allocations: 23.94 kB / 285.6 MB, free: 4.273 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001865/0.03927, allocations: 0.8862 MB / 286.5 MB, free: 3.387 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1141/0.1533, allocations: 3.256 MB / 289.8 MB, free: 30.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002152/0.1555, allocations: 0.7612 MB / 290.5 MB, free: 30.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004011/0.1559, allocations: 257.6 kB / 290.8 MB, free: 30.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.224e-05/0.156, allocations: 24.12 kB / 290.8 MB, free: 30.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.156, allocations: 43.23 kB / 290.8 MB, free: 30.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=65): time 2.414e-06/0.156, allocations: 2.562 kB / 290.8 MB, free: 30.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.001321/0.1573, allocations: 0.6969 MB / 291.5 MB, free: 30.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.1574, allocations: 112.1 kB / 291.7 MB, free: 30.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003083/0.1577, allocations: 373.6 kB / 292 MB, free: 30.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.1577, allocations: 38.58 kB / 292.1 MB, free: 30.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.1579, allocations: 448.7 kB / 292.5 MB, free: 30.14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.158, allocations: 247 kB / 292.7 MB, free: 30.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/0.1582, allocations: 164.2 kB / 292.9 MB, free: 29.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.625e-05/0.1583, allocations: 0.538 MB / 293.4 MB, free: 29.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.1587, allocations: 207 kB / 293.6 MB, free: 29.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/0.1591, allocations: 0.5157 MB / 294.1 MB, free: 29.13 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008611/0.16, allocations: 0.7825 MB / 294.9 MB, free: 28.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.16, allocations: 2.25 kB / 294.9 MB, free: 28.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001134/0.1611, allocations: 0.7657 MB / 295.7 MB, free: 28.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.1612, allocations: 7.188 kB / 295.7 MB, free: 28.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.1612, allocations: 12.39 kB / 295.7 MB, free: 28.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.627e-05/0.1612, allocations: 10.03 kB / 295.7 MB, free: 28.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006802/0.1619, allocations: 184.9 kB / 295.9 MB, free: 28.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.937e-05/0.1619, allocations: 18.7 kB / 295.9 MB, free: 28.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003671/0.1623, allocations: 82.31 kB / 296 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.141e-05/0.1623, allocations: 36.47 kB / 296 MB, free: 28.22 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 98 * 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.0002406/0.1626, allocations: 264.4 kB / 296.3 MB, free: 27.99 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.1627, allocations: 59.98 kB / 296.4 MB, free: 27.96 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001101/0.1638, allocations: 0.617 MB / 297 MB, free: 27.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.1638, allocations: 7.625 kB / 297 MB, free: 27.71 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1638, allocations: 5.094 kB / 297 MB, free: 27.71 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.1638, allocations: 4.781 kB / 297 MB, free: 27.71 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002047/0.1659, allocations: 1.444 MB / 298.4 MB, free: 26.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1659, allocations: 1.875 kB / 298.4 MB, free: 26.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005428/0.1664, allocations: 136.2 kB / 298.6 MB, free: 26.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.1664, allocations: 3.5 kB / 298.6 MB, free: 26.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/0.1665, allocations: 18.11 kB / 298.6 MB, free: 26.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.1665, allocations: 2.438 kB / 298.6 MB, free: 26.94 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/0.1665, allocations: 3.375 kB / 298.6 MB, free: 26.94 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.1678, allocations: 1.236 MB / 299.8 MB, free: 26.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.858e-05/0.1678, allocations: 46.36 kB / 299.9 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.575e-05/0.1679, allocations: 12.34 kB / 299.9 MB, free: 26.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003247/0.1682, allocations: 18.34 kB / 299.9 MB, free: 26.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.964e-05/0.1683, allocations: 49.14 kB / 300 MB, free: 26.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.1683, allocations: 18.67 kB / 300 MB, free: 26.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001696/0.1685, allocations: 226.9 kB / 300.2 MB, free: 25.99 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1685, allocations: 0 / 300.2 MB, free: 25.99 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009149/0.1694, allocations: 227.1 kB / 300.4 MB, free: 25.92 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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 Backend phase and start with SimCode phase: time 0.0002589/0.1697, allocations: 150.2 kB / 300.6 MB, free: 25.81 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.1711, allocations: 0.6 MB / 301.2 MB, free: 25.63 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.1711, allocations: 0 / 301.2 MB, free: 25.63 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006718/0.1718, allocations: 296.1 kB / 301.5 MB, free: 25.54 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008785/0.1727, allocations: 55.97 kB / 301.5 MB, free: 25.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.1753, allocations: 1.223 MB / 302.7 MB, free: 24.79 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.1757, allocations: 305.4 kB / 303 MB, free: 24.69 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004462/0.1762, allocations: 78.66 kB / 303.1 MB, free: 24.67 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.1763, allocations: 48.59 kB / 303.2 MB, free: 24.66 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1763, allocations: 3.562 kB / 303.2 MB, free: 24.66 MB / 266.7 MB Notification: Performance of Templates: time 0.01185/0.1882, allocations: 4.239 MB / 307.4 MB, free: 22.95 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.757493934012018]