Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001591/0.00159, allocations: 114 kB / 17.28 MB, free: 6.219 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.001565/0.001565, allocations: 189.3 kB / 18.2 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.984/1.984, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 51.92 kB / 280.2 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1518, allocations: 46.63 MB / 326.8 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007605/0.1595, allocations: 5.33 MB / 332.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003889/0.1634, allocations: 1.454 MB / 333.6 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006536/0.1641, allocations: 27.88 kB / 333.6 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005645/0.1648, allocations: 162.6 kB / 333.8 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005829/0.1654, allocations: 154.7 kB / 333.9 MB, free: 13.63 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.1664, allocations: 343.6 kB / 334.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001214/0.1676, allocations: 1.123 MB / 335.4 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008072/0.1684, allocations: 484.2 kB / 335.8 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000507/0.1689, allocations: 402.2 kB / 336.2 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004823/0.1694, allocations: 425.6 kB / 336.6 MB, free: 10.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001285/0.1696, allocations: 91.98 kB / 336.7 MB, free: 10.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/0.1698, allocations: 99.94 kB / 336.8 MB, free: 10.67 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001814/0.17, allocations: 207.2 kB / 337 MB, free: 10.47 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004603/0.1704, allocations: 0.497 MB / 337.5 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001239/0.1717, allocations: 1.121 MB / 338.6 MB, free: 8.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.075e-05/0.1717, allocations: 0 / 338.6 MB, free: 8.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.1717, allocations: 0 / 338.6 MB, free: 8.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.566e-05/0.1718, allocations: 0 / 338.6 MB, free: 8.844 MB / 286.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.002319/0.1741, allocations: 1.309 MB / 340 MB, free: 7.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.218e-05/0.1742, allocations: 11.89 kB / 340 MB, free: 7.469 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002189/0.1744, allocations: 122.5 kB / 340.1 MB, free: 7.348 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009953/0.1754, allocations: 0.6146 MB / 340.7 MB, free: 6.691 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.811e-05/0.1755, allocations: 77.94 kB / 340.8 MB, free: 6.617 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.1757, allocations: 100 kB / 340.9 MB, free: 6.52 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001895/0.1776, allocations: 1.031 MB / 341.9 MB, free: 5.363 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.681e-05/0.1776, allocations: 7.938 kB / 341.9 MB, free: 5.355 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.438e-05/0.1777, allocations: 44 kB / 342 MB, free: 5.312 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.1778, allocations: 28 kB / 342 MB, free: 5.285 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.1789, allocations: 0.55 MB / 342.5 MB, free: 4.734 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005415/0.1843, allocations: 5.524 MB / 348.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000552/0.1849, allocations: 241 kB / 348.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.1852, allocations: 157.6 kB / 348.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003354/0.1856, allocations: 81.36 kB / 348.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/0.1856, allocations: 46.5 kB / 348.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.265e-06/0.1856, allocations: 0 / 348.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004255/0.1899, allocations: 1.707 MB / 350.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.792e-05/0.19, allocations: 88.98 kB / 350.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008744/0.1909, allocations: 0.6333 MB / 351 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.1909, allocations: 33.7 kB / 351 MB, free: 11.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000513/0.1914, allocations: 0.5987 MB / 351.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.1916, allocations: 141.9 kB / 351.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.1918, allocations: 138.5 kB / 351.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.192, allocations: 386.8 kB / 352.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.1923, allocations: 153.9 kB / 352.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005346/0.1928, allocations: 497.1 kB / 352.9 MB, free: 9.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009191/0.1938, allocations: 0.7029 MB / 353.6 MB, free: 8.816 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1938, allocations: 0 / 353.6 MB, free: 8.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001095/0.1949, allocations: 0.7116 MB / 354.3 MB, free: 8.098 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.1949, allocations: 12 kB / 354.3 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.1949, allocations: 12 kB / 354.4 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.014e-05/0.195, allocations: 16 kB / 354.4 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006213/0.1956, allocations: 199.6 kB / 354.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.568e-05/0.1957, allocations: 27.86 kB / 354.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.196, allocations: 36.22 kB / 354.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.172e-05/0.1961, allocations: 39.98 kB / 354.7 MB, free: 7.762 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.0003609/0.1964, allocations: 229.5 kB / 354.9 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.1966, allocations: 71.06 kB / 355 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.1967, allocations: 74.55 kB / 355 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1967, allocations: 7.984 kB / 355 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/0.1967, allocations: 3.938 kB / 355 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1967, allocations: 0 / 355 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.1988, allocations: 1.333 MB / 356.4 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.1988, allocations: 0 / 356.4 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004566/0.1993, allocations: 107.8 kB / 356.5 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.1993, allocations: 4 kB / 356.5 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.1993, allocations: 12.16 kB / 356.5 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-06/0.1993, allocations: 7.938 kB / 356.5 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.581e-05/0.1994, allocations: 4 kB / 356.5 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009981/0.2004, allocations: 0.7042 MB / 357.2 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.2005, allocations: 140.2 kB / 357.4 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.262e-05/0.2006, allocations: 12 kB / 357.4 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002824/0.2008, allocations: 27.92 kB / 357.4 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.881e-05/0.201, allocations: 27.95 kB / 357.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.201, allocations: 16 kB / 357.4 MB, free: 4.855 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005121/0.2015, allocations: 419 kB / 357.8 MB, free: 4.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2015, allocations: 0 / 357.8 MB, free: 4.449 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006927/0.2022, allocations: 144 kB / 358 MB, free: 4.309 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.000193/0.2024, allocations: 111.1 kB / 358.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008615/0.2033, allocations: 465.8 kB / 358.6 MB, free: 3.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2033, allocations: 0 / 358.6 MB, free: 3.738 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002678/0.2036, allocations: 143.8 kB / 358.7 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005686/0.2041, allocations: 76.11 kB / 358.8 MB, free: 3.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003507/0.2077, allocations: 2.111 MB / 360.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007949/0.2085, allocations: 1.004 MB / 361.9 MB, free: 344 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003045/0.2088, allocations: 94 kB / 362 MB, free: 248 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.209, allocations: 71.41 kB / 362 MB, free: 176 kB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.209, allocations: 0 / 362 MB, free: 176 kB / 302.1 MB Notification: Performance of Templates: time 0.0122/0.2212, allocations: 4.856 MB / 366.9 MB, free: 11.32 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches