Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.0008921/0.0008921, allocations: 85.17 kB / 21.5 MB, free: 2.988 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.0008896/0.0008896, allocations: 149 kB / 24.9 MB, free: 8.793 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.8939/0.8939, allocations: 173.3 MB / 201.5 MB, free: 9.164 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.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 268.5 MB, free: 6.156 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.268e-05/1.402e-05, allocations: 6.25 kB / 268.5 MB, free: 6.148 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002484/0.002498, allocations: 2.849 MB / 271.3 MB, free: 3.281 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008444/0.003343, allocations: 0.6852 MB / 272 MB, free: 2.59 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.003456, allocations: 11.94 kB / 272 MB, free: 2.578 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.003603, allocations: 59.42 kB / 272.1 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.003726, allocations: 91.14 kB / 272.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.003908, allocations: 99.73 kB / 272.3 MB, free: 2.332 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.004157, allocations: 386.2 kB / 272.6 MB, free: 1.953 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.004307, allocations: 120.4 kB / 272.8 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001979/0.004505, allocations: 215.6 kB / 273 MB, free: 1.621 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.00462, allocations: 111.6 kB / 273.1 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.579e-05/0.004656, allocations: 36 kB / 273.1 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.347e-05/0.004689, allocations: 32 kB / 273.1 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.375e-05/0.004733, allocations: 75.73 kB / 273.2 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.004842, allocations: 115.7 kB / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002916/0.005134, allocations: 251 kB / 273.6 MB, free: 1.012 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.005135, allocations: 4 kB / 273.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.005136, allocations: 0 / 273.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.00514, allocations: 0 / 273.6 MB, free: 1.008 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006558/0.005796, allocations: 0.5155 MB / 274.1 MB, free: 480 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.005827, allocations: 8.922 kB / 274.1 MB, free: 472 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.919e-05/0.005906, allocations: 52.89 kB / 274.2 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.006125, allocations: 181.2 kB / 274.3 MB, free: 212 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.006146, allocations: 21.03 kB / 274.4 MB, free: 192 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.27e-05/0.006199, allocations: 36.38 kB / 274.4 MB, free: 156 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/0.006532, allocations: 254.7 kB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.006544, allocations: 192 / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.006568, allocations: 20.36 kB / 274.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.006579, allocations: 11.94 kB / 274.7 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/0.006725, allocations: 68.56 kB / 274.7 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.007729, allocations: 0.6772 MB / 275.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.007852, allocations: 102.4 kB / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.665e-05/0.007888, allocations: 32.8 kB / 275.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.007902, allocations: 3.984 kB / 275.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.007923, allocations: 38.56 kB / 275.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.007924, allocations: 0 / 275.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.000153/0.008077, allocations: 112.8 kB / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.424e-05/0.008101, allocations: 55.34 kB / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.322e-05/0.008195, allocations: 186.4 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.008208, allocations: 29.7 kB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.225e-05/0.008271, allocations: 184.3 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.548e-05/0.008306, allocations: 79.34 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.008349, allocations: 41.69 kB / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/0.008421, allocations: 330.8 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.673e-05/0.008448, allocations: 19.98 kB / 276.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.961e-05/0.008498, allocations: 69.97 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.649e-05/0.008594, allocations: 117.8 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.008596, allocations: 0 / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001275/0.008723, allocations: 137.5 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/0.008733, allocations: 4 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.008737, allocations: 4.047 kB / 276.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.008749, allocations: 7.984 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.008883, allocations: 59.84 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.00889, allocations: 15.86 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.76e-05/0.008947, allocations: 31.95 kB / 277 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.607e-06/0.008956, allocations: 4 kB / 277 MB, free: 13.3 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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 6.992e-05/0.009026, allocations: 117.8 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.117e-05/0.009057, allocations: 23.92 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.009172, allocations: 107.4 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.009175, allocations: 4 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.009178, allocations: 3.938 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.00918, allocations: 0 / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001454/0.009326, allocations: 157.7 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.009326, allocations: 0 / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001265/0.009453, allocations: 47.92 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.009455, allocations: 3.984 kB / 277.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.009465, allocations: 8 kB / 277.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-07/0.009466, allocations: 0 / 277.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.009467, allocations: 0 / 277.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001725/0.009639, allocations: 230.5 kB / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.718e-05/0.009657, allocations: 23.84 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.009671, allocations: 0 / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.93e-05/0.00974, allocations: 16 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.843e-05/0.009769, allocations: 11.97 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.009775, allocations: 8 kB / 277.8 MB, free: 12.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.667e-05/0.009812, allocations: 53.92 kB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009812, allocations: 0 / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001715/0.009984, allocations: 79.72 kB / 277.9 MB, free: 12.38 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * 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 (19): * Single equations (assignments): 19 * 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 7.07e-05/0.01005, allocations: 92.34 kB / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001071/0.01016, allocations: 84.66 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.01016, allocations: 4.25 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.303e-05/0.01021, allocations: 52.77 kB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.01035, allocations: 19.98 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007759/0.01113, allocations: 0.5977 MB / 278.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.254e-05/0.01118, allocations: 92.12 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.9e-05/0.01123, allocations: 17.64 kB / 278.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.251e-05/0.01131, allocations: 79.36 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01131, allocations: 0 / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of Templates: time 0.003495/0.01481, allocations: 1.879 MB / 280.8 MB, free: 9.441 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.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.5705657531507313]