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.001379/0.001379, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001375/0.001375, allocations: 142.1 kB / 24.97 MB, free: 8.316 MB / 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 1.032/1.032, allocations: 173.3 MB / 201.5 MB, free: 9.32 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.744e-06/1.744e-06, allocations: 3.938 kB / 268.1 MB, free: 6.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.068e-05/2.242e-05, allocations: 2.312 kB / 268.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004621/0.004644, allocations: 5.106 MB / 273.2 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002577/0.00722, allocations: 1.426 MB / 274.6 MB, free: 116 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007032/0.007923, allocations: 31.75 kB / 274.7 MB, free: 84 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004603/0.008384, allocations: 217.8 kB / 274.9 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005702/0.008954, allocations: 205.8 kB / 275.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007677/0.009722, allocations: 407.2 kB / 275.5 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.01081, allocations: 1.145 MB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004864/0.0113, allocations: 320.8 kB / 276.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000641/0.01194, allocations: 0.5923 MB / 277.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002992/0.01224, allocations: 294.9 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.916e-05/0.01233, allocations: 84 kB / 277.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.01246, allocations: 103.9 kB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.01257, allocations: 215 kB / 278.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002284/0.0128, allocations: 323 kB / 278.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007416/0.01354, allocations: 0.77 MB / 279.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.01355, allocations: 0 / 279.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.01355, allocations: 4 kB / 279.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.082e-05/0.01357, allocations: 0 / 279.3 MB, free: 11.41 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.001422/0.01499, allocations: 1.356 MB / 280.7 MB, free: 10.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.01503, allocations: 12.03 kB / 280.7 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001955/0.01523, allocations: 211.2 kB / 280.9 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006909/0.01592, allocations: 0.6122 MB / 281.5 MB, free: 9.152 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.608e-05/0.01597, allocations: 74 kB / 281.6 MB, free: 9.078 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.447e-05/0.01605, allocations: 96 kB / 281.7 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.01709, allocations: 1.054 MB / 282.7 MB, free: 7.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.01712, allocations: 11.89 kB / 282.7 MB, free: 7.738 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.013e-05/0.01717, allocations: 44 kB / 282.8 MB, free: 7.695 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.071e-05/0.01719, allocations: 24 kB / 282.8 MB, free: 7.672 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000601/0.01779, allocations: 391.2 kB / 283.2 MB, free: 7.289 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003415/0.02121, allocations: 6.862 MB / 290 MB, free: 104 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1201/0.1413, allocations: 192.8 kB / 290.2 MB, free: 26.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.1415, allocations: 112.3 kB / 290.3 MB, free: 26.47 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.1416, allocations: 14.45 kB / 290.3 MB, free: 26.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1417, allocations: 46.56 kB / 290.4 MB, free: 26.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=28): time 2.334e-06/0.1417, allocations: 0 / 290.4 MB, free: 26.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002449/0.1441, allocations: 1.363 MB / 291.7 MB, free: 25.92 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.1441, allocations: 86.66 kB / 291.8 MB, free: 25.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005945/0.1447, allocations: 0.6593 MB / 292.5 MB, free: 25.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.1448, allocations: 32.56 kB / 292.5 MB, free: 25.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002795/0.145, allocations: 0.6599 MB / 293.2 MB, free: 25.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.662e-05/0.1451, allocations: 160.2 kB / 293.3 MB, free: 25.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.1453, allocations: 140.2 kB / 293.5 MB, free: 25.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1454, allocations: 0.5552 MB / 294 MB, free: 24.67 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.1456, allocations: 77.89 kB / 294.1 MB, free: 24.67 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002985/0.1459, allocations: 0.5694 MB / 294.7 MB, free: 24.03 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005115/0.1464, allocations: 0.7194 MB / 295.4 MB, free: 23.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.1464, allocations: 3.719 kB / 295.4 MB, free: 23.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.000746/0.1471, allocations: 0.6214 MB / 296 MB, free: 23.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.1471, allocations: 11.97 kB / 296 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.1472, allocations: 11.91 kB / 296 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.549e-05/0.1472, allocations: 21.53 kB / 296.1 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.1477, allocations: 189.4 kB / 296.3 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.501e-05/0.1477, allocations: 26.58 kB / 296.3 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.1479, allocations: 34.16 kB / 296.3 MB, free: 23.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.722e-05/0.1479, allocations: 40.25 kB / 296.4 MB, free: 23.31 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.0001566/0.1481, allocations: 213.9 kB / 296.6 MB, free: 23.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.489e-05/0.1482, allocations: 90.67 kB / 296.6 MB, free: 23.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.988e-05/0.1483, allocations: 78.98 kB / 296.7 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.1483, allocations: 4.344 kB / 296.7 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.1483, allocations: 1.906 kB / 296.7 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.1483, allocations: 6.969 kB / 296.7 MB, free: 23.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/0.1496, allocations: 1.129 MB / 297.9 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1496, allocations: 3.141 kB / 297.9 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000273/0.1499, allocations: 99.58 kB / 298 MB, free: 22.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.1499, allocations: 4.281 kB / 298 MB, free: 22.58 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.1499, allocations: 12.02 kB / 298 MB, free: 22.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.1499, allocations: 4.25 kB / 298 MB, free: 22.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.1499, allocations: 5.312 kB / 298 MB, free: 22.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005748/0.1505, allocations: 0.6513 MB / 298.6 MB, free: 22.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/0.1506, allocations: 67.72 kB / 298.7 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.557e-05/0.1506, allocations: 18.16 kB / 298.7 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.1508, allocations: 21.39 kB / 298.7 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.359e-05/0.1509, allocations: 29.12 kB / 298.8 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1509, allocations: 18.14 kB / 298.8 MB, free: 22.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003587/0.1513, allocations: 408.1 kB / 299.2 MB, free: 21.98 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1513, allocations: 0 / 299.2 MB, free: 21.98 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005838/0.1518, allocations: 141.4 kB / 299.3 MB, free: 21.98 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.0001204/0.152, allocations: 104.3 kB / 299.4 MB, free: 21.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005039/0.1525, allocations: 336.6 kB / 299.8 MB, free: 21.86 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1525, allocations: 1.438 kB / 299.8 MB, free: 21.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.1526, allocations: 114.3 kB / 299.9 MB, free: 21.85 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.153, allocations: 73.08 kB / 299.9 MB, free: 21.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.1556, allocations: 1.57 MB / 301.5 MB, free: 20.93 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001582/0.1557, allocations: 163.8 kB / 301.7 MB, free: 20.86 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002511/0.156, allocations: 95.34 kB / 301.8 MB, free: 20.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.1561, allocations: 63.81 kB / 301.8 MB, free: 20.82 MB / 266.7 MB Notification: Performance of SimCode: time 1.413e-06/0.1561, allocations: 1.156 kB / 301.8 MB, free: 20.82 MB / 266.7 MB Notification: Performance of Templates: time 0.01046/0.1666, allocations: 4.727 MB / 306.6 MB, free: 19.74 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.013105421094224]