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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=20000,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=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001752/0.001752, allocations: 109.5 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001977/0.001977, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.357/2.357, allocations: 222.9 MB / 241.8 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 55.81 kB / 300.6 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1671/0.1691, allocations: 49.44 MB / 350.1 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.01257/0.1817, allocations: 5.358 MB / 355.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005688/0.1875, allocations: 1.418 MB / 356.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001832/0.1894, allocations: 31.81 kB / 356.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001233/0.1906, allocations: 158.6 kB / 357 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001971/0.1928, allocations: 150.7 kB / 357.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.1948, allocations: 343.6 kB / 357.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003087/0.198, allocations: 1.072 MB / 358.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001567/0.1996, allocations: 439.3 kB / 359 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0011/0.2007, allocations: 358.3 kB / 359.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.2019, allocations: 429.4 kB / 359.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004977/0.2024, allocations: 56 kB / 359.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005886/0.203, allocations: 68 kB / 359.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003973/0.2034, allocations: 191.1 kB / 360.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.2045, allocations: 493 kB / 360.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001631/0.2062, allocations: 0.7874 MB / 361.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.105e-05/0.2062, allocations: 0 / 361.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.699e-06/0.2062, allocations: 0 / 361.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001143/0.2064, allocations: 0 / 361.3 MB, free: 9.254 MB / 302.1 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.004814/0.2112, allocations: 1.305 MB / 362.6 MB, free: 7.895 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.843e-05/0.2113, allocations: 12.03 kB / 362.7 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005406/0.2119, allocations: 122.5 kB / 362.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0017/0.2136, allocations: 0.6107 MB / 363.4 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.2137, allocations: 77.88 kB / 363.5 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002475/0.214, allocations: 104 kB / 363.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003138/0.2171, allocations: 1.019 MB / 364.6 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.637e-05/0.2172, allocations: 11.92 kB / 364.6 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.2173, allocations: 44 kB / 364.6 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.016e-05/0.2174, allocations: 28 kB / 364.7 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002114/0.2195, allocations: 0.5578 MB / 365.2 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3246/0.5441, allocations: 5.512 MB / 370.7 MB, free: 21.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.5452, allocations: 228.5 kB / 371 MB, free: 21.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006497/0.5459, allocations: 159.3 kB / 371.1 MB, free: 21.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002488/0.5461, allocations: 90.09 kB / 371.2 MB, free: 21.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.489e-05/0.5462, allocations: 45.83 kB / 371.2 MB, free: 21.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 4.098e-06/0.5462, allocations: 0.5938 kB / 371.3 MB, free: 21.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.007373/0.5536, allocations: 1.714 MB / 373 MB, free: 20.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.783e-05/0.5537, allocations: 84.75 kB / 373 MB, free: 20.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/0.556, allocations: 0.6392 MB / 373.7 MB, free: 20.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.285e-05/0.5561, allocations: 33.89 kB / 373.7 MB, free: 20.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007463/0.5569, allocations: 0.6073 MB / 374.3 MB, free: 20.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000264/0.5572, allocations: 144.8 kB / 374.5 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003916/0.5576, allocations: 135.8 kB / 374.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002177/0.5578, allocations: 383.6 kB / 375 MB, free: 19.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000632/0.5584, allocations: 154 kB / 375.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008674/0.5593, allocations: 0.4916 MB / 375.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.5608, allocations: 0.691 MB / 376.3 MB, free: 18.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.89e-05/0.5608, allocations: 4.062 kB / 376.3 MB, free: 18.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002384/0.5632, allocations: 0.7166 MB / 377 MB, free: 18.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/0.5633, allocations: 10.28 kB / 377 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.685e-05/0.5634, allocations: 12.38 kB / 377.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.995e-05/0.5634, allocations: 17.58 kB / 377.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.5647, allocations: 203.8 kB / 377.3 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.52e-05/0.5648, allocations: 31.39 kB / 377.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009472/0.5658, allocations: 32.83 kB / 377.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.5659, allocations: 36.5 kB / 377.4 MB, free: 18.16 MB / 302.1 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.0005932/0.5665, allocations: 230.5 kB / 377.6 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002939/0.5668, allocations: 74.17 kB / 377.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002808/0.5671, allocations: 74.62 kB / 377.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.5671, allocations: 4.188 kB / 377.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-05/0.5672, allocations: 5.281 kB / 377.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.5672, allocations: 6.203 kB / 377.8 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0044/0.5716, allocations: 1.32 MB / 379.1 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.5716, allocations: 6.359 kB / 379.1 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009101/0.5726, allocations: 104.4 kB / 379.2 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-05/0.5726, allocations: 6.688 kB / 379.2 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.401e-05/0.5727, allocations: 11.05 kB / 379.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.266e-05/0.5727, allocations: 6.719 kB / 379.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.5727, allocations: 2.469 kB / 379.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001883/0.5746, allocations: 0.6904 MB / 379.9 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002863/0.5749, allocations: 142.2 kB / 380 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001703/0.5751, allocations: 12.45 kB / 380 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007141/0.5758, allocations: 29.2 kB / 380.1 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.576, allocations: 32.05 kB / 380.1 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.599e-05/0.5761, allocations: 13.69 kB / 380.1 MB, free: 16.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001115/0.5772, allocations: 420.5 kB / 380.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.92e-07/0.5772, allocations: 1.969 kB / 380.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001624/0.5789, allocations: 136.6 kB / 380.7 MB, free: 16.32 MB / 302.1 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.0002196/0.5791, allocations: 123.4 kB / 380.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.5807, allocations: 430.6 kB / 381.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.5807, allocations: 1.219 kB / 381.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005407/0.5813, allocations: 154.2 kB / 381.4 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.5825, allocations: 80.77 kB / 381.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00561/0.5881, allocations: 2.143 MB / 383.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001223/0.5894, allocations: 0.9996 MB / 384.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004246/0.5898, allocations: 69.67 kB / 384.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of SimCode: time 1.893e-06/0.5899, allocations: 0 / 384.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of Templates: time 0.03819/0.6281, allocations: 9.212 MB / 393.9 MB, free: 10.06 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches