Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009361/0.0009361, allocations: 199.4 kB / 18.06 MB, free: 3.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 226.5 MB / 245.4 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007376/0.0007376, allocations: 103.4 kB / 297.4 MB, free: 6.859 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001993/0.0001994, allocations: 8 kB / 357.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.1847, allocations: 51.28 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09169/0.2765, allocations: 83.75 MB / 492.4 MB, free: 7.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.2767, allocations: 67.97 kB / 492.5 MB, free: 7.773 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0615/0.3382, allocations: 16.37 MB / 0.4969 GB, free: 7.094 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3383, allocations: 3.938 kB / 0.4969 GB, free: 7.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.013e-05/0.3384, allocations: 28 kB / 0.4969 GB, free: 7.062 MB / 378.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.002834/0.3412, allocations: 1.126 MB / 0.498 GB, free: 5.883 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.3413, allocations: 8.031 kB / 0.4981 GB, free: 5.875 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005916/0.3419, allocations: 155.3 kB / 0.4982 GB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001398/0.3433, allocations: 0.575 MB / 0.4988 GB, free: 5.105 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/0.3434, allocations: 74.38 kB / 0.4988 GB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002021/0.3436, allocations: 100.3 kB / 0.4989 GB, free: 4.938 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002875/0.3465, allocations: 1.031 MB / 0.4999 GB, free: 3.781 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.39e-05/0.3466, allocations: 8.125 kB / 0.4999 GB, free: 3.773 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/0.3467, allocations: 47.94 kB / 0.5 GB, free: 3.727 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.159e-05/0.3468, allocations: 28 kB / 0.5 GB, free: 3.699 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002142/0.349, allocations: 0.5539 MB / 0.5006 GB, free: 3.145 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1926/0.5415, allocations: 5.531 MB / 0.506 GB, free: 86.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005953/0.5422, allocations: 233.9 kB / 0.5062 GB, free: 86.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003081/0.5425, allocations: 170.8 kB / 0.5063 GB, free: 86.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001373/0.5426, allocations: 89.53 kB / 0.5064 GB, free: 86.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.5427, allocations: 35.5 kB / 0.5065 GB, free: 86.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 2.645e-06/0.5427, allocations: 0 / 0.5065 GB, free: 86.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.003458/0.5461, allocations: 1.741 MB / 0.5082 GB, free: 85.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.5462, allocations: 88.39 kB / 0.5083 GB, free: 85.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00065/0.5468, allocations: 0.6257 MB / 0.5089 GB, free: 85.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.5469, allocations: 33.89 kB / 0.5089 GB, free: 85.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.5472, allocations: 0.602 MB / 0.5095 GB, free: 84.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.871e-05/0.5473, allocations: 148.7 kB / 0.5096 GB, free: 84.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.348e-05/0.5473, allocations: 14.44 kB / 0.5096 GB, free: 84.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.5474, allocations: 389.4 kB / 0.51 GB, free: 84.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002959/0.5477, allocations: 154.5 kB / 0.5102 GB, free: 84.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004485/0.5482, allocations: 0.4975 MB / 0.5106 GB, free: 84.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007496/0.5489, allocations: 0.715 MB / 0.5113 GB, free: 83.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.549, allocations: 7.625 kB / 0.5113 GB, free: 83.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001276/0.5502, allocations: 0.7171 MB / 0.512 GB, free: 83.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.5503, allocations: 12.59 kB / 0.5121 GB, free: 83.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.5503, allocations: 15.16 kB / 0.5121 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.672e-05/0.5503, allocations: 16.5 kB / 0.5121 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006204/0.551, allocations: 203.6 kB / 0.5123 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.42e-05/0.551, allocations: 25.92 kB / 0.5123 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003404/0.5513, allocations: 37.77 kB / 0.5123 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.41e-05/0.5514, allocations: 44.75 kB / 0.5124 GB, free: 83.62 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.0002832/0.5517, allocations: 228.5 kB / 0.5126 GB, free: 83.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.138e-05/0.5518, allocations: 74.84 kB / 0.5127 GB, free: 83.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.5519, allocations: 77.84 kB / 0.5128 GB, free: 83.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.5519, allocations: 7.75 kB / 0.5128 GB, free: 83.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.5519, allocations: 0 / 0.5128 GB, free: 83.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.5519, allocations: 6.562 kB / 0.5128 GB, free: 83.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.5536, allocations: 1.352 MB / 0.5141 GB, free: 82.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.5536, allocations: 3.422 kB / 0.5141 GB, free: 82.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004009/0.554, allocations: 112 kB / 0.5142 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.554, allocations: 7.312 kB / 0.5142 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.554, allocations: 17.17 kB / 0.5142 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.554, allocations: 6.531 kB / 0.5142 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.554, allocations: 0 / 0.5142 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007811/0.5548, allocations: 0.7186 MB / 0.5149 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.268e-05/0.5549, allocations: 140.4 kB / 0.5151 GB, free: 82.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.668e-05/0.555, allocations: 14.2 kB / 0.5151 GB, free: 82.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.5553, allocations: 35.38 kB / 0.5151 GB, free: 82.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.249e-05/0.5553, allocations: 23.88 kB / 0.5151 GB, free: 82.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.5554, allocations: 16.06 kB / 0.5151 GB, free: 82.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003428/0.5557, allocations: 415 kB / 0.5155 GB, free: 82.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5557, allocations: 0 / 0.5155 GB, free: 82.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005827/0.5563, allocations: 141.9 kB / 0.5157 GB, free: 82.4 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.0001231/0.5564, allocations: 117.8 kB / 0.5158 GB, free: 82.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006347/0.5571, allocations: 452.2 kB / 0.5162 GB, free: 82.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.5571, allocations: 0 / 0.5162 GB, free: 82.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.5573, allocations: 165.8 kB / 0.5164 GB, free: 82.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006171/0.558, allocations: 74.31 kB / 0.5164 GB, free: 82.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002152/0.5601, allocations: 2.14 MB / 0.5185 GB, free: 80.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.5605, allocations: 1.003 MB / 0.5195 GB, free: 80.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.5606, allocations: 70.66 kB / 0.5196 GB, free: 80.22 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5606, allocations: 0 / 0.5196 GB, free: 80.22 MB / 378.7 MB Notification: Performance of Templates: time 0.009618/0.5702, allocations: 9.059 MB / 0.5284 GB, free: 78.34 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches