Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.0009035/0.0009035, allocations: 76.08 kB / 21.18 MB, free: 3.383 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.001073/0.001073, allocations: 141.1 kB / 24.54 MB, free: 28 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 0.9496/0.9496, allocations: 173.3 MB / 201.1 MB, free: 9.309 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.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 268 MB, free: 6.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.578e-05/1.685e-05, allocations: 6.25 kB / 268 MB, free: 6.371 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004451/0.004468, allocations: 5.137 MB / 273.2 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.006583, allocations: 1.426 MB / 274.6 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003815/0.006964, allocations: 35.75 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003379/0.007302, allocations: 213.8 kB / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004516/0.007754, allocations: 221.6 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006212/0.008375, allocations: 403.3 kB / 275.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008343/0.009209, allocations: 1.149 MB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006718/0.009881, allocations: 316.8 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005493/0.01043, allocations: 0.5962 MB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000281/0.01071, allocations: 294.9 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.328e-05/0.01079, allocations: 88 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.01093, allocations: 103.9 kB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.01104, allocations: 215 kB / 278.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.01123, allocations: 323 kB / 278.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006057/0.01184, allocations: 0.7739 MB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.01184, allocations: 0 / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.01184, allocations: 0 / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.01185, allocations: 0 / 279.3 MB, free: 11.05 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001169/0.01302, allocations: 1.356 MB / 280.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.01306, allocations: 8.031 kB / 280.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001878/0.01324, allocations: 211.2 kB / 280.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006376/0.01388, allocations: 0.62 MB / 281.5 MB, free: 8.797 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.145e-05/0.01392, allocations: 74 kB / 281.5 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.024e-05/0.014, allocations: 96 kB / 281.6 MB, free: 8.629 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009756/0.01498, allocations: 1.05 MB / 282.7 MB, free: 7.398 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.015, allocations: 11.89 kB / 282.7 MB, free: 7.387 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.66e-05/0.01505, allocations: 44 kB / 282.7 MB, free: 7.344 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/0.01507, allocations: 28 kB / 282.8 MB, free: 7.316 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005567/0.01563, allocations: 387.2 kB / 283.1 MB, free: 6.938 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1034/0.1191, allocations: 6.864 MB / 290 MB, free: 25.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004187/0.1195, allocations: 185.6 kB / 290.2 MB, free: 25.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.1197, allocations: 119.7 kB / 290.3 MB, free: 25.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.987e-05/0.1198, allocations: 10.42 kB / 290.3 MB, free: 25.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.1198, allocations: 40.95 kB / 290.3 MB, free: 25.31 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 1.984e-06/0.1198, allocations: 0 / 290.3 MB, free: 25.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.00239/0.1222, allocations: 1.369 MB / 291.7 MB, free: 24.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.89e-05/0.1222, allocations: 82.52 kB / 291.8 MB, free: 24.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006164/0.1229, allocations: 0.6628 MB / 292.5 MB, free: 24.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.1229, allocations: 32.14 kB / 292.5 MB, free: 24.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003018/0.1232, allocations: 0.6659 MB / 293.2 MB, free: 24.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.424e-05/0.1233, allocations: 151.3 kB / 293.3 MB, free: 24.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.1234, allocations: 144.2 kB / 293.4 MB, free: 24.05 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1235, allocations: 0.5522 MB / 294 MB, free: 23.56 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.1237, allocations: 79.03 kB / 294.1 MB, free: 23.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.124, allocations: 0.5702 MB / 294.6 MB, free: 22.92 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004649/0.1244, allocations: 0.7145 MB / 295.4 MB, free: 22.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.1244, allocations: 7.312 kB / 295.4 MB, free: 22.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006869/0.1251, allocations: 0.6189 MB / 296 MB, free: 22.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.1251, allocations: 16 kB / 296 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.1252, allocations: 12.47 kB / 296 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.973e-05/0.1252, allocations: 18.98 kB / 296 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004153/0.1256, allocations: 195.7 kB / 296.2 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.343e-05/0.1256, allocations: 30.19 kB / 296.2 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002097/0.1258, allocations: 28.98 kB / 296.3 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.1259, allocations: 39.91 kB / 296.3 MB, free: 22.21 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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.0001575/0.126, allocations: 209 kB / 296.5 MB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.209e-05/0.1261, allocations: 95.75 kB / 296.6 MB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.268e-05/0.1262, allocations: 75.91 kB / 296.7 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1262, allocations: 5.125 kB / 296.7 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.1262, allocations: 0 / 296.7 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1262, allocations: 3.047 kB / 296.7 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.1274, allocations: 1.135 MB / 297.8 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.1274, allocations: 1.625 kB / 297.8 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002549/0.1277, allocations: 101 kB / 297.9 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.892e-06/0.1277, allocations: 3.016 kB / 297.9 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.1277, allocations: 13.81 kB / 297.9 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.633e-06/0.1277, allocations: 7.297 kB / 298 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.1277, allocations: 5.438 kB / 298 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005046/0.1282, allocations: 0.655 MB / 298.6 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/0.1283, allocations: 68.27 kB / 298.7 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.942e-05/0.1283, allocations: 11.53 kB / 298.7 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.1285, allocations: 18.53 kB / 298.7 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.404e-05/0.1285, allocations: 27.72 kB / 298.7 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.1286, allocations: 14.47 kB / 298.8 MB, free: 21.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003285/0.1289, allocations: 411.7 kB / 299.2 MB, free: 20.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1289, allocations: 4 kB / 299.2 MB, free: 20.87 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000491/0.1294, allocations: 140.2 kB / 299.3 MB, free: 20.87 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.822e-05/0.1295, allocations: 116.2 kB / 299.4 MB, free: 20.78 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005054/0.13, allocations: 326.6 kB / 299.7 MB, free: 20.76 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.13, allocations: 0.9062 kB / 299.7 MB, free: 20.76 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.1301, allocations: 109.8 kB / 299.8 MB, free: 20.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.1305, allocations: 72.94 kB / 299.9 MB, free: 20.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001956/0.1324, allocations: 1.562 MB / 301.5 MB, free: 19.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.1325, allocations: 168.6 kB / 301.6 MB, free: 19.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001779/0.1327, allocations: 94.33 kB / 301.7 MB, free: 19.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.1328, allocations: 66.84 kB / 301.8 MB, free: 19.75 MB / 266.7 MB Notification: Performance of SimCode: time 4.5e-07/0.1328, allocations: 0 / 301.8 MB, free: 19.75 MB / 266.7 MB Notification: Performance of Templates: time 0.008556/0.1414, allocations: 4.936 MB / 306.7 MB, free: 18.51 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.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.901322280988097]