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.001821/0.001821, allocations: 76.08 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.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.0009663/0.0009663, allocations: 141.1 kB / 24.54 MB, free: 32 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.9748/0.9748, allocations: 173.4 MB / 201.1 MB, free: 9.34 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.793e-06/1.793e-06, allocations: 0 / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.122e-05/2.301e-05, allocations: 6.25 kB / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004716/0.004739, allocations: 5.133 MB / 273.2 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.007273, allocations: 1.426 MB / 274.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004431/0.007716, allocations: 31.75 kB / 274.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003871/0.008103, allocations: 217.7 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004942/0.008597, allocations: 213.8 kB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006265/0.009224, allocations: 403.2 kB / 275.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008466/0.01007, allocations: 1.149 MB / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004025/0.01047, allocations: 320.8 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005153/0.01099, allocations: 0.5885 MB / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002857/0.01127, allocations: 294.9 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.673e-05/0.01136, allocations: 87.94 kB / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.0115, allocations: 99.92 kB / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.01162, allocations: 219 kB / 278.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000214/0.01183, allocations: 319 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006604/0.01249, allocations: 0.7662 MB / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.01249, allocations: 0 / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.0125, allocations: 0 / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.01251, allocations: 7.938 kB / 279.2 MB, free: 11.11 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.001289/0.0138, allocations: 1.352 MB / 280.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.01385, allocations: 16.03 kB / 280.6 MB, free: 9.703 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.01403, allocations: 211.2 kB / 280.8 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006448/0.01468, allocations: 0.6122 MB / 281.4 MB, free: 8.855 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.796e-05/0.01473, allocations: 74 kB / 281.5 MB, free: 8.781 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.659e-05/0.01481, allocations: 100 kB / 281.6 MB, free: 8.684 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.01584, allocations: 1.054 MB / 282.7 MB, free: 7.449 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/0.01586, allocations: 11.89 kB / 282.7 MB, free: 7.438 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.136e-05/0.01592, allocations: 44 kB / 282.7 MB, free: 7.395 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.01594, allocations: 24 kB / 282.7 MB, free: 7.371 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000564/0.0165, allocations: 387.2 kB / 283.1 MB, free: 6.992 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1262/0.1427, allocations: 6.861 MB / 290 MB, free: 29.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000422/0.1431, allocations: 188.7 kB / 290.2 MB, free: 29.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.1433, allocations: 109.6 kB / 290.3 MB, free: 29.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.482e-05/0.1434, allocations: 19.61 kB / 290.3 MB, free: 29.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.1434, allocations: 44.17 kB / 290.3 MB, free: 29.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 2.124e-06/0.1434, allocations: 0 / 290.3 MB, free: 29.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002188/0.1456, allocations: 1.368 MB / 291.7 MB, free: 29.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.1457, allocations: 81.77 kB / 291.8 MB, free: 29.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005182/0.1462, allocations: 0.6645 MB / 292.4 MB, free: 28.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.1462, allocations: 33.39 kB / 292.5 MB, free: 28.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/0.1464, allocations: 0.6613 MB / 293.1 MB, free: 28.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.527e-05/0.1465, allocations: 156.7 kB / 293.3 MB, free: 28.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.1466, allocations: 141.4 kB / 293.4 MB, free: 28.38 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1467, allocations: 0.5541 MB / 294 MB, free: 27.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.1469, allocations: 82.7 kB / 294.1 MB, free: 27.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.1471, allocations: 0.5685 MB / 294.6 MB, free: 27.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004418/0.1476, allocations: 0.7149 MB / 295.3 MB, free: 26.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.1476, allocations: 3.375 kB / 295.3 MB, free: 26.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006565/0.1482, allocations: 0.6233 MB / 296 MB, free: 26.54 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.1483, allocations: 12.41 kB / 296 MB, free: 26.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.1483, allocations: 11.84 kB / 296 MB, free: 26.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.011e-05/0.1483, allocations: 19.98 kB / 296 MB, free: 26.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003876/0.1487, allocations: 194.8 kB / 296.2 MB, free: 26.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.031e-05/0.1487, allocations: 22.81 kB / 296.2 MB, free: 26.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.1489, allocations: 32.77 kB / 296.3 MB, free: 26.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.862e-05/0.1489, allocations: 37.33 kB / 296.3 MB, free: 26.52 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.0001348/0.1491, allocations: 213.9 kB / 296.5 MB, free: 26.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.142e-05/0.1492, allocations: 95.31 kB / 296.6 MB, free: 26.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.026e-05/0.1492, allocations: 81.36 kB / 296.7 MB, free: 26.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1492, allocations: 4.062 kB / 296.7 MB, free: 26.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1492, allocations: 1.438 kB / 296.7 MB, free: 26.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1492, allocations: 2.344 kB / 296.7 MB, free: 26.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.1504, allocations: 1.13 MB / 297.8 MB, free: 25.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.1504, allocations: 5.938 kB / 297.8 MB, free: 25.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002524/0.1507, allocations: 97.2 kB / 297.9 MB, free: 25.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.74e-06/0.1507, allocations: 4.234 kB / 297.9 MB, free: 25.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.1507, allocations: 12.98 kB / 297.9 MB, free: 25.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.1507, allocations: 3.5 kB / 297.9 MB, free: 25.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1507, allocations: 6.562 kB / 297.9 MB, free: 25.6 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004626/0.1512, allocations: 0.653 MB / 298.6 MB, free: 25.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.707e-05/0.1512, allocations: 65.95 kB / 298.7 MB, free: 25.08 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.1512, allocations: 16.83 kB / 298.7 MB, free: 25.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.1514, allocations: 17.61 kB / 298.7 MB, free: 25.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.98e-05/0.1515, allocations: 37.62 kB / 298.7 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.1515, allocations: 14.73 kB / 298.7 MB, free: 25.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003316/0.1518, allocations: 407 kB / 299.1 MB, free: 24.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1518, allocations: 0 / 299.1 MB, free: 24.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004868/0.1523, allocations: 140.3 kB / 299.3 MB, free: 24.84 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.954e-05/0.1524, allocations: 105.4 kB / 299.4 MB, free: 24.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004148/0.1528, allocations: 331.1 kB / 299.7 MB, free: 24.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1528, allocations: 9.016 kB / 299.7 MB, free: 24.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.1529, allocations: 111.1 kB / 299.8 MB, free: 24.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.1533, allocations: 70.73 kB / 299.9 MB, free: 24.58 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/0.1554, allocations: 1.573 MB / 301.5 MB, free: 23.61 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.1555, allocations: 164.6 kB / 301.6 MB, free: 23.54 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001909/0.1557, allocations: 94.98 kB / 301.7 MB, free: 23.52 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.1558, allocations: 69.28 kB / 301.8 MB, free: 23.5 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.1558, allocations: 0 / 301.8 MB, free: 23.5 MB / 266.7 MB Notification: Performance of Templates: time 0.007999/0.1638, allocations: 4.718 MB / 306.5 MB, free: 22.14 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: 3.064120818860829]