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.00154/0.00154, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.019/2.019, allocations: 205.2 MB / 219.4 MB, free: 14.3 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.001117/0.001117, allocations: 90.64 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.74e-05/2.751e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.09209, allocations: 47.57 MB / 369.1 MB, free: 2.219 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4423/0.5345, allocations: 81.22 MB / 450.3 MB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/0.5348, allocations: 69.09 kB / 450.4 MB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06408/0.5989, allocations: 15.96 MB / 466.3 MB, free: 13.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.599, allocations: 0 / 466.3 MB, free: 13.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.648e-05/0.5991, allocations: 35.98 kB / 466.4 MB, free: 13.64 MB / 346.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.002452/0.6015, allocations: 1.033 MB / 467.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.6016, allocations: 8.031 kB / 467.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003015/0.6019, allocations: 128.6 kB / 467.5 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001363/0.6033, allocations: 0.5588 MB / 468.1 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.289e-05/0.6034, allocations: 77.98 kB / 468.2 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.6036, allocations: 103.9 kB / 468.3 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/0.606, allocations: 0.9878 MB / 469.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.968e-05/0.6061, allocations: 7.938 kB / 469.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.6062, allocations: 48 kB / 469.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.684e-05/0.6063, allocations: 28 kB / 469.3 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.608, allocations: 0.5112 MB / 469.9 MB, free: 9.945 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007535/0.6155, allocations: 5.528 MB / 475.4 MB, free: 4.129 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007591/0.6163, allocations: 221 kB / 475.6 MB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004396/0.6168, allocations: 149.7 kB / 475.7 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001615/0.617, allocations: 85.09 kB / 475.8 MB, free: 3.641 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.617, allocations: 42.5 kB / 475.9 MB, free: 3.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 2.895e-06/0.617, allocations: 0 / 475.9 MB, free: 3.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.004608/0.6216, allocations: 1.523 MB / 477.4 MB, free: 1.965 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.538e-05/0.6217, allocations: 81.11 kB / 477.5 MB, free: 1.867 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009841/0.6227, allocations: 0.5428 MB / 478 MB, free: 1.312 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.6228, allocations: 29.7 kB / 478 MB, free: 1.277 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005331/0.6233, allocations: 0.6167 MB / 478.7 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.6235, allocations: 150 kB / 478.8 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.6236, allocations: 16 kB / 478.8 MB, free: 500 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.6237, allocations: 346.8 kB / 479.2 MB, free: 144 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003781/0.6241, allocations: 125.6 kB / 479.3 MB, free: 16 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007037/0.6249, allocations: 466.9 kB / 479.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000546/0.6254, allocations: 216.2 kB / 480 MB, free: 15.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/0.6254, allocations: 4 kB / 480 MB, free: 15.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001486/0.6269, allocations: 0.6221 MB / 480.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.627, allocations: 12 kB / 480.6 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/0.627, allocations: 12 kB / 480.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.771e-05/0.6271, allocations: 16.75 kB / 480.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.6283, allocations: 211.5 kB / 480.8 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.771e-05/0.6283, allocations: 27.92 kB / 480.9 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006561/0.629, allocations: 39.98 kB / 480.9 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.409e-05/0.6291, allocations: 36 kB / 480.9 MB, free: 14.21 MB / 362.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 () * 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.0001735/0.6293, allocations: 156.7 kB / 481.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.6295, allocations: 71.06 kB / 481.2 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002044/0.6297, allocations: 86.25 kB / 481.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.6297, allocations: 4 kB / 481.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.6297, allocations: 3.953 kB / 481.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.6297, allocations: 3.984 kB / 481.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002923/0.6327, allocations: 1.288 MB / 482.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.6327, allocations: 0 / 482.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009223/0.6336, allocations: 107.9 kB / 482.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/0.6337, allocations: 4.156 kB / 482.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.195e-05/0.6337, allocations: 19.98 kB / 482.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.747e-06/0.6337, allocations: 4 kB / 482.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.6337, allocations: 3.938 kB / 482.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.635, allocations: 0.7099 MB / 483.4 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.6352, allocations: 144.2 kB / 483.5 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.486e-05/0.6353, allocations: 16.02 kB / 483.5 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005004/0.6358, allocations: 31.98 kB / 483.6 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.234e-05/0.6359, allocations: 31.86 kB / 483.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.8e-05/0.636, allocations: 15.98 kB / 483.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007219/0.6367, allocations: 407.2 kB / 484 MB, free: 10.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6367, allocations: 4 kB / 484 MB, free: 10.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008946/0.6376, allocations: 140 kB / 484.2 MB, free: 10.82 MB / 362.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 () * 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.0001921/0.6378, allocations: 115.1 kB / 484.3 MB, free: 10.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009427/0.6388, allocations: 381.1 kB / 484.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.6388, allocations: 4 kB / 484.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003336/0.6391, allocations: 133.4 kB / 484.8 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005097/0.6397, allocations: 71.44 kB / 484.8 MB, free: 10.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003413/0.6431, allocations: 1.259 MB / 486.1 MB, free: 8.812 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007921/0.6439, allocations: 1.032 MB / 487.1 MB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002982/0.6442, allocations: 71.41 kB / 487.2 MB, free: 7.684 MB / 362.7 MB Notification: Performance of SimCode: time 8.71e-07/0.6442, allocations: 3.938 kB / 487.2 MB, free: 7.68 MB / 362.7 MB Notification: Performance of Templates: time 0.02151/0.6658, allocations: 8.89 MB / 496.1 MB, free: 14.78 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