Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009601/0.0009601, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.023/1.023, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.033e-06/2.033e-06, allocations: 0 / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.041e-05/3.244e-05, allocations: 2.312 kB / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.00561/0.005642, allocations: 5.161 MB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003279/0.008921, allocations: 1.492 MB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009166/0.009837, allocations: 35.69 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005693/0.01041, allocations: 225.7 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008749/0.01128, allocations: 205.9 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.0124, allocations: 423.2 kB / 280.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001399/0.0138, allocations: 1.153 MB / 281.7 MB, free: 8.789 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005653/0.01436, allocations: 316.8 kB / 282 MB, free: 8.453 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.01539, allocations: 0.5963 MB / 282.6 MB, free: 7.855 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004065/0.01579, allocations: 298.9 kB / 282.9 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.01591, allocations: 84 kB / 283 MB, free: 7.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.01614, allocations: 99.94 kB / 283.1 MB, free: 7.383 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.01627, allocations: 215 kB / 283.3 MB, free: 7.172 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003175/0.01659, allocations: 327 kB / 283.6 MB, free: 6.852 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.01771, allocations: 0.7778 MB / 284.4 MB, free: 6.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.01771, allocations: 0 / 284.4 MB, free: 6.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.01772, allocations: 0 / 284.4 MB, free: 6.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.862e-05/0.01775, allocations: 4 kB / 284.4 MB, free: 6.066 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.001801/0.01955, allocations: 1.359 MB / 285.7 MB, free: 4.668 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.0196, allocations: 8.031 kB / 285.7 MB, free: 4.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003774/0.01998, allocations: 227.1 kB / 286 MB, free: 4.438 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009023/0.02088, allocations: 0.6279 MB / 286.6 MB, free: 3.781 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.772e-05/0.02094, allocations: 74 kB / 286.7 MB, free: 3.707 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.02106, allocations: 99.94 kB / 286.8 MB, free: 3.609 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.02245, allocations: 1.054 MB / 287.8 MB, free: 2.375 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.223e-05/0.02249, allocations: 7.891 kB / 287.8 MB, free: 2.367 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.263e-05/0.02255, allocations: 44 kB / 287.9 MB, free: 2.324 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.074e-05/0.02259, allocations: 28 kB / 287.9 MB, free: 2.297 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007477/0.02333, allocations: 387.2 kB / 288.3 MB, free: 1.922 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1615/0.1849, allocations: 6.874 MB / 295.1 MB, free: 19.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004496/0.1853, allocations: 187.6 kB / 295.3 MB, free: 19.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.1855, allocations: 109.5 kB / 295.4 MB, free: 19.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.1856, allocations: 12.34 kB / 295.4 MB, free: 19.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.1857, allocations: 40.86 kB / 295.5 MB, free: 19.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 2.835e-06/0.1857, allocations: 1 kB / 295.5 MB, free: 19.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002539/0.1882, allocations: 1.374 MB / 296.9 MB, free: 18.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.1882, allocations: 82.48 kB / 296.9 MB, free: 18.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006742/0.1889, allocations: 0.6672 MB / 297.6 MB, free: 18.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.1889, allocations: 37.95 kB / 297.6 MB, free: 18.65 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003793/0.1893, allocations: 0.6583 MB / 298.3 MB, free: 18.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.1895, allocations: 154.5 kB / 298.5 MB, free: 18.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.1896, allocations: 138.2 kB / 298.6 MB, free: 18.22 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.1898, allocations: 0.5597 MB / 299.2 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.19, allocations: 77.95 kB / 299.2 MB, free: 17.72 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003681/0.1904, allocations: 0.5673 MB / 299.8 MB, free: 17.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005976/0.191, allocations: 0.7146 MB / 300.5 MB, free: 16.47 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.191, allocations: 3.844 kB / 300.5 MB, free: 16.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008481/0.1918, allocations: 0.6268 MB / 301.1 MB, free: 16.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.1918, allocations: 10.72 kB / 301.1 MB, free: 16.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.1919, allocations: 11.91 kB / 301.2 MB, free: 16.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.438e-05/0.1919, allocations: 21.45 kB / 301.2 MB, free: 16.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004195/0.1923, allocations: 190.3 kB / 301.4 MB, free: 16.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.506e-05/0.1923, allocations: 27 kB / 301.4 MB, free: 16.33 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002339/0.1926, allocations: 29.45 kB / 301.4 MB, free: 16.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.222e-05/0.1926, allocations: 38.52 kB / 301.5 MB, free: 16.33 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.0001632/0.1928, allocations: 213 kB / 301.7 MB, free: 16.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.722e-05/0.1929, allocations: 91.45 kB / 301.8 MB, free: 16.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.71e-05/0.193, allocations: 76.89 kB / 301.8 MB, free: 16.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.193, allocations: 4.656 kB / 301.8 MB, free: 16.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.193, allocations: 3.031 kB / 301.8 MB, free: 16.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.974e-06/0.193, allocations: 2.25 kB / 301.8 MB, free: 16.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.1945, allocations: 1.156 MB / 303 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.1945, allocations: 1.25 kB / 303 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002808/0.1948, allocations: 102.5 kB / 303.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.1948, allocations: 6.109 kB / 303.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.1948, allocations: 9.188 kB / 303.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.463e-06/0.1948, allocations: 8.203 kB / 303.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.1948, allocations: 2.156 kB / 303.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006021/0.1954, allocations: 0.6549 MB / 303.8 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.534e-05/0.1955, allocations: 69.8 kB / 303.8 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.427e-05/0.1955, allocations: 9.031 kB / 303.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.1957, allocations: 21.81 kB / 303.9 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.756e-05/0.1958, allocations: 37.22 kB / 303.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.1958, allocations: 10.05 kB / 303.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003764/0.1961, allocations: 416.5 kB / 304.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1961, allocations: 0 / 304.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005991/0.1967, allocations: 136.9 kB / 304.5 MB, free: 14.82 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 0.0001323/0.1969, allocations: 110.3 kB / 304.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005043/0.1974, allocations: 331 kB / 304.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1974, allocations: 0 / 304.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.1975, allocations: 113.6 kB / 305 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.1979, allocations: 77.05 kB / 305.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.2004, allocations: 1.574 MB / 306.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000165/0.2006, allocations: 170.7 kB / 306.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001982/0.2008, allocations: 91.2 kB / 306.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.2009, allocations: 65 kB / 307 MB, free: 13.47 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2009, allocations: 0 / 307 MB, free: 13.47 MB / 266.7 MB Notification: Performance of Templates: time 0.01101/0.2119, allocations: 4.723 MB / 311.7 MB, free: 11.93 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.3782862150110304]