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.001059/0.001059, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001085/0.001085, allocations: 170.6 kB / 25 MB, free: 8.742 MB / 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.043/1.043, allocations: 177.1 MB / 205.3 MB, free: 5.605 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 1.393e-06/1.393e-06, allocations: 0 / 273.1 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.271e-05/1.411e-05, allocations: 2.312 kB / 273.1 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004251/0.004265, allocations: 5.132 MB / 278.2 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.006195, allocations: 1.496 MB / 279.7 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002617/0.006456, allocations: 35.69 kB / 279.8 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003076/0.006764, allocations: 229.7 kB / 280 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000328/0.007092, allocations: 201.8 kB / 280.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005139/0.007606, allocations: 427.2 kB / 280.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009031/0.008509, allocations: 1.149 MB / 281.7 MB, free: 9.098 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003387/0.008848, allocations: 316.9 kB / 282 MB, free: 8.762 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004337/0.009281, allocations: 0.5924 MB / 282.6 MB, free: 8.168 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.009512, allocations: 294.9 kB / 282.9 MB, free: 7.879 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.246e-05/0.009584, allocations: 88 kB / 283 MB, free: 7.793 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.009701, allocations: 107.9 kB / 283.1 MB, free: 7.688 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.943e-05/0.009801, allocations: 223 kB / 283.3 MB, free: 7.469 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.009978, allocations: 323 kB / 283.7 MB, free: 7.152 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005336/0.01051, allocations: 0.7778 MB / 284.4 MB, free: 6.371 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.01051, allocations: 0 / 284.4 MB, free: 6.371 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.01051, allocations: 0 / 284.4 MB, free: 6.371 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.01052, allocations: 0 / 284.4 MB, free: 6.371 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.001072/0.01159, allocations: 1.36 MB / 285.8 MB, free: 4.973 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.01163, allocations: 12.03 kB / 285.8 MB, free: 4.961 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002566/0.01188, allocations: 227.1 kB / 286 MB, free: 4.738 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006001/0.01248, allocations: 0.6317 MB / 286.7 MB, free: 4.078 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.287e-05/0.01253, allocations: 74 kB / 286.7 MB, free: 4.004 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.843e-05/0.01261, allocations: 96 kB / 286.8 MB, free: 3.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.01378, allocations: 1.042 MB / 287.9 MB, free: 2.688 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/0.0138, allocations: 15.86 kB / 287.9 MB, free: 2.672 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.649e-05/0.01385, allocations: 44 kB / 287.9 MB, free: 2.629 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.01387, allocations: 28 kB / 288 MB, free: 2.602 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005311/0.0144, allocations: 391.2 kB / 288.3 MB, free: 2.223 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.12/0.1344, allocations: 6.865 MB / 295.2 MB, free: 22.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003661/0.1348, allocations: 186.5 kB / 295.4 MB, free: 22.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.135, allocations: 110.7 kB / 295.5 MB, free: 22.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.144e-05/0.1351, allocations: 12.25 kB / 295.5 MB, free: 22.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.1351, allocations: 38.53 kB / 295.5 MB, free: 22.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 1.994e-06/0.1351, allocations: 0.8125 kB / 295.5 MB, free: 22.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002109/0.1372, allocations: 1.373 MB / 296.9 MB, free: 22.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.1372, allocations: 82.95 kB / 297 MB, free: 22.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005067/0.1378, allocations: 0.6702 MB / 297.7 MB, free: 21.71 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.1378, allocations: 30.95 kB / 297.7 MB, free: 21.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.138, allocations: 0.6662 MB / 298.4 MB, free: 21.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.442e-05/0.1381, allocations: 156.2 kB / 298.5 MB, free: 21.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.1382, allocations: 138.9 kB / 298.6 MB, free: 21.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.819e-05/0.1383, allocations: 0.5573 MB / 299.2 MB, free: 20.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.1384, allocations: 79.09 kB / 299.3 MB, free: 20.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.1387, allocations: 0.5667 MB / 299.8 MB, free: 19.81 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004425/0.1391, allocations: 0.7109 MB / 300.6 MB, free: 19.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.1391, allocations: 9.625 kB / 300.6 MB, free: 19.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006797/0.1398, allocations: 0.6254 MB / 301.2 MB, free: 18.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.1398, allocations: 10.12 kB / 301.2 MB, free: 18.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.1398, allocations: 12.5 kB / 301.2 MB, free: 18.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.1399, allocations: 16.84 kB / 301.2 MB, free: 18.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003725/0.1402, allocations: 191.5 kB / 301.4 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.952e-05/0.1403, allocations: 22.97 kB / 301.4 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/0.1404, allocations: 32.39 kB / 301.5 MB, free: 18.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.1405, allocations: 41.52 kB / 301.5 MB, free: 18.78 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.0001366/0.1406, allocations: 215.1 kB / 301.7 MB, free: 18.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.282e-05/0.1407, allocations: 93.17 kB / 301.8 MB, free: 18.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.284e-05/0.1408, allocations: 83.08 kB / 301.9 MB, free: 18.47 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.1408, allocations: 3.406 kB / 301.9 MB, free: 18.47 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1408, allocations: 2.312 kB / 301.9 MB, free: 18.47 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.1408, allocations: 2.531 kB / 301.9 MB, free: 18.47 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.1419, allocations: 1.142 MB / 303 MB, free: 17.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1419, allocations: 2.094 kB / 303 MB, free: 17.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002483/0.1421, allocations: 102.2 kB / 303.1 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.1421, allocations: 5.375 kB / 303.2 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.1422, allocations: 9.719 kB / 303.2 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1422, allocations: 2.984 kB / 303.2 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1422, allocations: 2.062 kB / 303.2 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000495/0.1427, allocations: 0.6615 MB / 303.8 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.318e-05/0.1427, allocations: 68.45 kB / 303.9 MB, free: 17.22 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.1428, allocations: 12.5 kB / 303.9 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.1429, allocations: 20.22 kB / 303.9 MB, free: 17.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.17e-05/0.143, allocations: 32.97 kB / 304 MB, free: 17.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.143, allocations: 14.59 kB / 304 MB, free: 17.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003124/0.1433, allocations: 407.4 kB / 304.4 MB, free: 17.01 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1433, allocations: 2.844 kB / 304.4 MB, free: 17.01 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00044/0.1437, allocations: 140.8 kB / 304.5 MB, free: 16.99 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.467e-05/0.1438, allocations: 109.8 kB / 304.6 MB, free: 16.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004345/0.1443, allocations: 330.2 kB / 304.9 MB, free: 16.8 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1443, allocations: 448 / 304.9 MB, free: 16.8 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.1444, allocations: 116.4 kB / 305.1 MB, free: 16.76 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.1447, allocations: 70.92 kB / 305.1 MB, free: 16.72 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/0.1466, allocations: 1.593 MB / 306.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001208/0.1467, allocations: 166.6 kB / 306.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001715/0.1469, allocations: 91.66 kB / 307 MB, free: 15.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.147, allocations: 69.69 kB / 307 MB, free: 15.64 MB / 266.7 MB Notification: Performance of SimCode: time 9.61e-07/0.147, allocations: 0 / 307 MB, free: 15.64 MB / 266.7 MB Notification: Performance of Templates: time 0.007847/0.1548, allocations: 4.716 MB / 311.8 MB, free: 13.58 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.0131209399551153]