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.001138/0.001139, allocations: 100.9 kB / 16.65 MB, free: 6.254 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.001496/0.001496, allocations: 180.4 kB / 17.57 MB, free: 5.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.655/1.655, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004337/0.0004339, allocations: 7.984 kB / 301.4 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1532, allocations: 50.41 MB / 351.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006317/0.1596, allocations: 4.906 MB / 356.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003809/0.1635, allocations: 1.411 MB / 358.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.1648, allocations: 27.81 kB / 358.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009216/0.1658, allocations: 158.6 kB / 358.3 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00132/0.1671, allocations: 150.7 kB / 358.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.1686, allocations: 343.6 kB / 358.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002436/0.1711, allocations: 1.064 MB / 359.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00124/0.1723, allocations: 427.4 kB / 360.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001254/0.1736, allocations: 326.2 kB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007299/0.1744, allocations: 373.6 kB / 361 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001278/0.1745, allocations: 40 kB / 361 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.1747, allocations: 52 kB / 361.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.1749, allocations: 167.1 kB / 361.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005893/0.1755, allocations: 466.8 kB / 361.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.1765, allocations: 1.008 MB / 362.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.1766, allocations: 0 / 362.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.422e-06/0.1766, allocations: 4 kB / 362.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.1766, allocations: 3.938 kB / 362.7 MB, free: 8.504 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.00194/0.1785, allocations: 1.118 MB / 363.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.1786, allocations: 16.03 kB / 363.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002049/0.1788, allocations: 126.4 kB / 364 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.1799, allocations: 0.6069 MB / 364.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.627e-05/0.18, allocations: 77.94 kB / 364.6 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/0.1801, allocations: 103.9 kB / 364.8 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002069/0.1822, allocations: 1.027 MB / 365.8 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.226e-05/0.1823, allocations: 11.92 kB / 365.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.615e-05/0.1824, allocations: 44 kB / 365.8 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.34e-05/0.1824, allocations: 28 kB / 365.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.1837, allocations: 0.5618 MB / 366.4 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2849/0.4686, allocations: 5.526 MB / 371.9 MB, free: 20.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009128/0.4696, allocations: 235.7 kB / 372.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004078/0.47, allocations: 163.7 kB / 372.3 MB, free: 20.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002083/0.4702, allocations: 87.3 kB / 372.4 MB, free: 20.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.4703, allocations: 39.39 kB / 372.5 MB, free: 20.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.846e-06/0.4703, allocations: 1.031 kB / 372.5 MB, free: 20.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004916/0.4752, allocations: 1.781 MB / 374.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.4753, allocations: 81.33 kB / 374.3 MB, free: 19.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.4764, allocations: 0.6297 MB / 375 MB, free: 19.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.4764, allocations: 35.11 kB / 375 MB, free: 19.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004696/0.4769, allocations: 0.6005 MB / 375.6 MB, free: 19.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.477, allocations: 154.9 kB / 375.7 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-05/0.4771, allocations: 64.25 kB / 375.8 MB, free: 19.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4773, allocations: 382.8 kB / 376.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003615/0.4777, allocations: 164.5 kB / 376.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005613/0.4782, allocations: 0.4954 MB / 376.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009288/0.4792, allocations: 0.712 MB / 377.5 MB, free: 17.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.4792, allocations: 3.094 kB / 377.5 MB, free: 17.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001321/0.4805, allocations: 0.732 MB / 378.3 MB, free: 17.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.4805, allocations: 16.22 kB / 378.3 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.4806, allocations: 11 kB / 378.3 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.698e-05/0.4806, allocations: 17.8 kB / 378.3 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007018/0.4813, allocations: 198.5 kB / 378.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.282e-05/0.4814, allocations: 28.14 kB / 378.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004288/0.4818, allocations: 36.81 kB / 378.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.298e-05/0.4819, allocations: 44.48 kB / 378.6 MB, free: 17.39 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.0003482/0.4822, allocations: 226.4 kB / 378.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.4824, allocations: 82.34 kB / 378.9 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.4825, allocations: 73.36 kB / 379 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.4825, allocations: 5.344 kB / 379 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.4825, allocations: 5.375 kB / 379 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.4826, allocations: 6.141 kB / 379 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002451/0.485, allocations: 1.35 MB / 380.4 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.485, allocations: 4.906 kB / 380.4 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004874/0.4855, allocations: 109.4 kB / 380.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/0.4856, allocations: 3.75 kB / 380.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.4856, allocations: 12.73 kB / 380.5 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.4856, allocations: 4.734 kB / 380.5 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.4856, allocations: 1.922 kB / 380.5 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.4867, allocations: 0.7254 MB / 381.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.4869, allocations: 140.6 kB / 381.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.074e-05/0.4869, allocations: 9.359 kB / 381.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003018/0.4872, allocations: 33.94 kB / 381.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.4873, allocations: 31.09 kB / 381.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.4874, allocations: 11 kB / 381.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006142/0.488, allocations: 424.5 kB / 381.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.488, allocations: 0 / 381.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008946/0.4889, allocations: 142.1 kB / 382 MB, free: 15.54 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.0001545/0.4891, allocations: 114.9 kB / 382.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.4901, allocations: 454.7 kB / 382.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4901, allocations: 0 / 382.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003448/0.4905, allocations: 159.2 kB / 382.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007115/0.4912, allocations: 78.38 kB / 382.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0029/0.4941, allocations: 2.198 MB / 385 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005538/0.4947, allocations: 1 MB / 386 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003413/0.495, allocations: 96.83 kB / 386.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.4952, allocations: 64.11 kB / 386.1 MB, free: 13 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4952, allocations: 0 / 386.1 MB, free: 13 MB / 302.1 MB Notification: Performance of Templates: time 0.0106/0.5058, allocations: 4.633 MB / 390.8 MB, free: 11.73 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/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