Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003745/0.003745, allocations: 185.6 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.531/3.531, allocations: 205.4 MB / 223.6 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001365/0.001365, allocations: 93.42 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006244/0.0006246, allocations: 12 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6117/0.6124, allocations: 47.58 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1948/0.8072, allocations: 81.39 MB / 457.1 MB, free: 15.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004291/0.8077, allocations: 67.97 kB / 457.2 MB, free: 15.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08759/0.8954, allocations: 16 MB / 473.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.278e-06/0.8954, allocations: 0 / 473.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001095/0.8956, allocations: 35.98 kB / 473.2 MB, free: 14.82 MB / 362.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.003132/0.8987, allocations: 1.114 MB / 474.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.982e-05/0.8988, allocations: 12.03 kB / 474.3 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002996/0.8991, allocations: 131.3 kB / 474.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.9004, allocations: 0.5753 MB / 475 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.946e-05/0.9005, allocations: 74.38 kB / 475.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001912/0.9007, allocations: 100.3 kB / 475.2 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00288/0.9036, allocations: 1.036 MB / 476.2 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.697e-05/0.9037, allocations: 12.11 kB / 476.3 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/0.9039, allocations: 47.94 kB / 476.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.323e-05/0.9039, allocations: 27.94 kB / 476.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00209/0.906, allocations: 0.5539 MB / 476.9 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0138/0.9199, allocations: 5.54 MB / 482.4 MB, free: 5.094 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.9212, allocations: 236.9 kB / 482.7 MB, free: 4.844 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005984/0.9218, allocations: 161.7 kB / 482.8 MB, free: 4.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002451/0.9221, allocations: 85.09 kB / 482.9 MB, free: 4.578 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.197e-05/0.9221, allocations: 38.56 kB / 482.9 MB, free: 4.531 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 5.711e-06/0.9222, allocations: 0 / 482.9 MB, free: 4.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.007228/0.9294, allocations: 1.749 MB / 484.7 MB, free: 2.684 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.9296, allocations: 81.11 kB / 484.8 MB, free: 2.586 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001863/0.9315, allocations: 0.6294 MB / 485.4 MB, free: 1.949 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.937e-05/0.9317, allocations: 33.7 kB / 485.4 MB, free: 1.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00075/0.9324, allocations: 0.5987 MB / 486 MB, free: 1.301 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/0.9327, allocations: 149.9 kB / 486.2 MB, free: 1.152 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/0.9327, allocations: 16 kB / 486.2 MB, free: 1.137 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003067/0.933, allocations: 390.7 kB / 486.6 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006374/0.9337, allocations: 157.9 kB / 486.7 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.9348, allocations: 0.4933 MB / 487.2 MB, free: 15.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/0.9367, allocations: 0.7161 MB / 487.9 MB, free: 15.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.787e-05/0.9368, allocations: 4 kB / 487.9 MB, free: 15.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002447/0.9392, allocations: 0.7234 MB / 488.7 MB, free: 14.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.334e-05/0.9393, allocations: 12 kB / 488.7 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.313e-05/0.9393, allocations: 12 kB / 488.7 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.817e-05/0.9394, allocations: 16 kB / 488.7 MB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.9405, allocations: 200.2 kB / 488.9 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.121e-05/0.9406, allocations: 19.94 kB / 488.9 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000869/0.9414, allocations: 39.98 kB / 489 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.9416, allocations: 43.94 kB / 489 MB, free: 13.99 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001005/0.9426, allocations: 229.5 kB / 489.2 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003327/0.943, allocations: 75.06 kB / 489.3 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003292/0.9433, allocations: 82.47 kB / 489.4 MB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.9434, allocations: 4 kB / 489.4 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-05/0.9434, allocations: 3.938 kB / 489.4 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.9434, allocations: 3.984 kB / 489.4 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004462/0.9479, allocations: 1.346 MB / 490.7 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.9479, allocations: 4.141 kB / 490.7 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007716/0.9487, allocations: 111.9 kB / 490.8 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.27e-05/0.9488, allocations: 4 kB / 490.8 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.221e-05/0.9488, allocations: 15.98 kB / 490.9 MB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.335e-05/0.9488, allocations: 4 kB / 490.9 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.9489, allocations: 0 / 490.9 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006336/0.9552, allocations: 0.7204 MB / 491.6 MB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004746/0.9557, allocations: 144.2 kB / 491.7 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/0.956, allocations: 8 kB / 491.7 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007301/0.9568, allocations: 31.98 kB / 491.8 MB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.9569, allocations: 31.89 kB / 491.8 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.448e-05/0.957, allocations: 12 kB / 491.8 MB, free: 11.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001096/0.9581, allocations: 423 kB / 492.2 MB, free: 10.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9582, allocations: 0 / 492.2 MB, free: 10.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001582/0.9597, allocations: 144 kB / 492.4 MB, free: 10.48 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003787/0.9601, allocations: 115.2 kB / 492.5 MB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.962, allocations: 450 kB / 492.9 MB, free: 9.926 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/0.9621, allocations: 4 kB / 492.9 MB, free: 9.922 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006484/0.9627, allocations: 167.7 kB / 493.1 MB, free: 9.762 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.9643, allocations: 76.73 kB / 493.2 MB, free: 9.688 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006938/0.9712, allocations: 2.137 MB / 495.3 MB, free: 7.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001436/0.9727, allocations: 1 MB / 496.3 MB, free: 6.473 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004021/0.9732, allocations: 63.42 kB / 496.4 MB, free: 6.41 MB / 378.7 MB Notification: Performance of SimCode: time 1.953e-06/0.9732, allocations: 0 / 496.4 MB, free: 6.41 MB / 378.7 MB Notification: Performance of Templates: time 0.3957/1.369, allocations: 9.062 MB / 0.4936 GB, free: 102.6 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches