Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009671/0.0009671, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001057/0.001057, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9926/0.9926, allocations: 177 MB / 204.8 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.073e-05/3.263e-05, allocations: 5.406 kB / 272.9 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006502/0.006535, allocations: 5.173 MB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003159/0.009694, allocations: 1.5 MB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000601/0.01029, allocations: 35.69 kB / 279.6 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005141/0.01081, allocations: 221.8 kB / 279.9 MB, free: 10.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006576/0.01147, allocations: 217.7 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.01247, allocations: 423.2 kB / 280.5 MB, free: 9.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001243/0.01372, allocations: 1.149 MB / 281.6 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005517/0.01427, allocations: 320.8 kB / 282 MB, free: 8.348 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008798/0.01515, allocations: 0.6079 MB / 282.6 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004043/0.01555, allocations: 290.9 kB / 282.8 MB, free: 7.453 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001339/0.01569, allocations: 84 kB / 282.9 MB, free: 7.371 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002206/0.01591, allocations: 107.9 kB / 283 MB, free: 7.266 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.01607, allocations: 219 kB / 283.2 MB, free: 7.051 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003204/0.01639, allocations: 319 kB / 283.6 MB, free: 6.738 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.01744, allocations: 0.7739 MB / 284.3 MB, free: 5.961 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.01745, allocations: 4 kB / 284.3 MB, free: 5.957 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.01745, allocations: 0 / 284.3 MB, free: 5.957 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.033e-05/0.01747, allocations: 3.984 kB / 284.3 MB, free: 5.953 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.001931/0.0194, allocations: 1.359 MB / 285.7 MB, free: 4.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.01945, allocations: 15.98 kB / 285.7 MB, free: 4.539 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004448/0.0199, allocations: 231.1 kB / 285.9 MB, free: 4.312 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.02092, allocations: 0.6201 MB / 286.6 MB, free: 3.664 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.779e-05/0.02098, allocations: 74 kB / 286.6 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.02112, allocations: 100 kB / 286.7 MB, free: 3.492 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.02268, allocations: 1.046 MB / 287.8 MB, free: 2.266 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.962e-05/0.02272, allocations: 7.891 kB / 287.8 MB, free: 2.258 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.561e-05/0.0228, allocations: 43.94 kB / 287.8 MB, free: 2.215 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.412e-05/0.02283, allocations: 28 kB / 287.9 MB, free: 2.188 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009258/0.02376, allocations: 395.2 kB / 288.2 MB, free: 1.801 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1186/0.1423, allocations: 6.862 MB / 295.1 MB, free: 20.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003852/0.1427, allocations: 187.2 kB / 295.3 MB, free: 20.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.1429, allocations: 112.8 kB / 295.4 MB, free: 20.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.446e-05/0.143, allocations: 18.41 kB / 295.4 MB, free: 20.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.143, allocations: 37.47 kB / 295.5 MB, free: 19.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 2.445e-06/0.143, allocations: 2.625 kB / 295.5 MB, free: 19.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002173/0.1452, allocations: 1.374 MB / 296.8 MB, free: 19.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.1452, allocations: 82.14 kB / 296.9 MB, free: 19.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005433/0.1458, allocations: 0.6723 MB / 297.6 MB, free: 19.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.1458, allocations: 35.08 kB / 297.6 MB, free: 19.06 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.146, allocations: 0.6618 MB / 298.3 MB, free: 18.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.647e-05/0.1461, allocations: 148.2 kB / 298.4 MB, free: 18.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.1462, allocations: 141.7 kB / 298.6 MB, free: 18.63 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.1464, allocations: 0.5542 MB / 299.1 MB, free: 18.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.1465, allocations: 83.69 kB / 299.2 MB, free: 18.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.1467, allocations: 0.5672 MB / 299.8 MB, free: 17.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000435/0.1472, allocations: 0.7154 MB / 300.5 MB, free: 16.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.251e-06/0.1472, allocations: 3.812 kB / 300.5 MB, free: 16.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006776/0.1479, allocations: 0.6237 MB / 301.1 MB, free: 16.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.1479, allocations: 9.062 kB / 301.1 MB, free: 16.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.1479, allocations: 13.59 kB / 301.1 MB, free: 16.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.102e-05/0.1479, allocations: 16.62 kB / 301.1 MB, free: 16.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.1483, allocations: 200.1 kB / 301.3 MB, free: 16.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.16e-05/0.1483, allocations: 22.48 kB / 301.4 MB, free: 16.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.1485, allocations: 31.19 kB / 301.4 MB, free: 16.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.1486, allocations: 40.86 kB / 301.4 MB, free: 16.69 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.000131/0.1487, allocations: 215.2 kB / 301.6 MB, free: 16.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.455e-05/0.1488, allocations: 90.22 kB / 301.7 MB, free: 16.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.011e-05/0.1489, allocations: 77 kB / 301.8 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1489, allocations: 4.344 kB / 301.8 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.1489, allocations: 5.156 kB / 301.8 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1489, allocations: 3.734 kB / 301.8 MB, free: 16.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.15, allocations: 1.146 MB / 303 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1501, allocations: 2.469 kB / 303 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002437/0.1503, allocations: 93.61 kB / 303.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.1503, allocations: 11.56 kB / 303.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.1503, allocations: 14.2 kB / 303.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.1503, allocations: 4.078 kB / 303.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1503, allocations: 2.344 kB / 303.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004842/0.1508, allocations: 0.6521 MB / 303.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.938e-05/0.1509, allocations: 68.7 kB / 303.8 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.1509, allocations: 9.5 kB / 303.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.151, allocations: 29.88 kB / 303.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.541e-05/0.1511, allocations: 32.52 kB / 303.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.1511, allocations: 10.31 kB / 303.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003205/0.1515, allocations: 412.3 kB / 304.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1515, allocations: 1.094 kB / 304.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004888/0.1519, allocations: 136.5 kB / 304.4 MB, free: 14.9 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.0001094/0.152, allocations: 109 kB / 304.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005062/0.1526, allocations: 330.4 kB / 304.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.1526, allocations: 0 / 304.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.1527, allocations: 115 kB / 305 MB, free: 14.67 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003981/0.1531, allocations: 74.84 kB / 305 MB, free: 14.63 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002146/0.1552, allocations: 1.574 MB / 306.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001481/0.1554, allocations: 168 kB / 306.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001967/0.1556, allocations: 92 kB / 306.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.1557, allocations: 69.14 kB / 306.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of SimCode: time 1.943e-06/0.1557, allocations: 0 / 306.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of Templates: time 0.008924/0.1646, allocations: 4.929 MB / 311.9 MB, free: 11.88 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 2.972244966775179]