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.00143/0.00143, allocations: 99.55 kB / 17.58 MB, free: 5.418 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.001485/0.001485, allocations: 192.1 kB / 18.51 MB, free: 4.508 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.779/1.779, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001517/0.001517, allocations: 55.92 kB / 280.6 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1326, allocations: 46.64 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007692/0.1403, allocations: 5.339 MB / 332.6 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004046/0.1444, allocations: 1.477 MB / 334.1 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001172/0.1457, allocations: 27.88 kB / 334.1 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008034/0.1465, allocations: 217.8 kB / 334.3 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001263/0.1478, allocations: 194 kB / 334.5 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.1491, allocations: 395.4 kB / 334.9 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002265/0.1514, allocations: 1.111 MB / 336 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009418/0.1523, allocations: 480.2 kB / 336.5 MB, free: 11.19 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000793/0.1531, allocations: 394.3 kB / 336.9 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005399/0.1537, allocations: 433.5 kB / 337.3 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.1538, allocations: 87.98 kB / 337.4 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002289/0.1541, allocations: 96 kB / 337.5 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001915/0.1543, allocations: 207.1 kB / 337.7 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005035/0.1548, allocations: 0.4971 MB / 338.2 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.1562, allocations: 1.121 MB / 339.3 MB, free: 8.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.1562, allocations: 0 / 339.3 MB, free: 8.367 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1562, allocations: 0 / 339.3 MB, free: 8.367 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.1562, allocations: 0 / 339.3 MB, free: 8.367 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.002483/0.1587, allocations: 1.313 MB / 340.6 MB, free: 7 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.991e-05/0.1588, allocations: 15.89 kB / 340.6 MB, free: 6.984 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/0.1591, allocations: 122.5 kB / 340.8 MB, free: 6.863 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.1601, allocations: 0.6107 MB / 341.4 MB, free: 6.211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.87e-05/0.1602, allocations: 81.94 kB / 341.4 MB, free: 6.133 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.1603, allocations: 100 kB / 341.5 MB, free: 6.035 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00175/0.1621, allocations: 1.023 MB / 342.6 MB, free: 4.887 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/0.1621, allocations: 11.94 kB / 342.6 MB, free: 4.875 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.5e-05/0.1622, allocations: 44 kB / 342.6 MB, free: 4.832 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.794e-05/0.1623, allocations: 28 kB / 342.6 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.1634, allocations: 0.5539 MB / 343.2 MB, free: 4.246 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006545/0.17, allocations: 5.524 MB / 348.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007347/0.1708, allocations: 237 kB / 349 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003469/0.1712, allocations: 161.6 kB / 349.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002744/0.1715, allocations: 85.05 kB / 349.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/0.1715, allocations: 50.5 kB / 349.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 4.478e-06/0.1715, allocations: 0 / 349.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004335/0.1759, allocations: 1.709 MB / 351 MB, free: 12.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.327e-05/0.176, allocations: 85.05 kB / 351 MB, free: 11.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007966/0.1768, allocations: 0.6411 MB / 351.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.1768, allocations: 29.7 kB / 351.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005021/0.1773, allocations: 0.5948 MB / 352.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.1775, allocations: 149.9 kB / 352.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.1777, allocations: 134.5 kB / 352.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.1779, allocations: 386.8 kB / 353 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003318/0.1783, allocations: 149.9 kB / 353.1 MB, free: 9.844 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006756/0.1789, allocations: 0.4971 MB / 353.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.18, allocations: 0.6882 MB / 354.3 MB, free: 8.332 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.18, allocations: 4 kB / 354.3 MB, free: 8.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001385/0.1814, allocations: 0.7153 MB / 355 MB, free: 7.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.782e-05/0.1815, allocations: 8 kB / 355 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.1815, allocations: 12 kB / 355 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.752e-05/0.1815, allocations: 16 kB / 355 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/0.1822, allocations: 195.7 kB / 355.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-05/0.1822, allocations: 28.19 kB / 355.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/0.1826, allocations: 35.98 kB / 355.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.437e-05/0.1827, allocations: 40 kB / 355.3 MB, free: 7.277 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.000392/0.1831, allocations: 229.5 kB / 355.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.1832, allocations: 75.06 kB / 355.6 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/0.1834, allocations: 70.55 kB / 355.7 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.1834, allocations: 4 kB / 355.7 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/0.1834, allocations: 7.938 kB / 355.7 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.1834, allocations: 7.984 kB / 355.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002263/0.1857, allocations: 1.327 MB / 357 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.1857, allocations: 0 / 357 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004432/0.1861, allocations: 99.86 kB / 357.1 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.1862, allocations: 8.156 kB / 357.2 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.815e-05/0.1862, allocations: 19.98 kB / 357.2 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.174e-06/0.1862, allocations: 7.938 kB / 357.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1862, allocations: 0 / 357.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.1874, allocations: 0.7119 MB / 357.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.1875, allocations: 136.2 kB / 358 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.42e-05/0.1876, allocations: 16 kB / 358 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.1879, allocations: 27.92 kB / 358.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.371e-05/0.188, allocations: 31.89 kB / 358.1 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.312e-05/0.188, allocations: 12 kB / 358.1 MB, free: 4.363 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005106/0.1885, allocations: 423 kB / 358.5 MB, free: 3.953 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1886, allocations: 0 / 358.5 MB, free: 3.953 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008895/0.1895, allocations: 136 kB / 358.7 MB, free: 3.82 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.0002297/0.1897, allocations: 115.2 kB / 358.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.1907, allocations: 448.3 kB / 359.2 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.1907, allocations: 0 / 359.2 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003135/0.1911, allocations: 161.3 kB / 359.4 MB, free: 3.105 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000631/0.1917, allocations: 75.23 kB / 359.4 MB, free: 3.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003373/0.1951, allocations: 1.666 MB / 361.1 MB, free: 1.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000774/0.1959, allocations: 1.004 MB / 362.1 MB, free: 296 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003877/0.1963, allocations: 98 kB / 362.2 MB, free: 196 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.1965, allocations: 63.41 kB / 362.3 MB, free: 132 kB / 302.1 MB Notification: Performance of SimCode: time 1.683e-06/0.1965, allocations: 0 / 362.3 MB, free: 132 kB / 302.1 MB Notification: Performance of Templates: time 0.0132/0.2097, allocations: 4.931 MB / 367.2 MB, free: 11.2 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches