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.0008682/0.0008751, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.0008869/0.0008871, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.553/1.553, allocations: 223.3 MB / 241.2 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003019/0.0003019, allocations: 6.656 kB / 300.8 MB, free: 5.926 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1471, allocations: 50.43 MB / 351.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005734/0.1529, allocations: 4.609 MB / 355.9 MB, free: 7.109 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003091/0.156, allocations: 1.372 MB / 357.2 MB, free: 5.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006725/0.1567, allocations: 27.81 kB / 357.3 MB, free: 5.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004385/0.1572, allocations: 154.6 kB / 357.4 MB, free: 5.555 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005251/0.1577, allocations: 158.6 kB / 357.6 MB, free: 5.398 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008198/0.1586, allocations: 291.6 kB / 357.8 MB, free: 5.113 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.1597, allocations: 1.001 MB / 358.8 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000584/0.1603, allocations: 346.2 kB / 359.2 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004581/0.1607, allocations: 314.5 kB / 359.5 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000398/0.1612, allocations: 357.9 kB / 359.8 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.55e-05/0.1612, allocations: 40 kB / 359.9 MB, free: 3.051 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.1614, allocations: 56 kB / 359.9 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.1615, allocations: 151.3 kB / 360.1 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.1617, allocations: 197.1 kB / 360.3 MB, free: 2.648 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007153/0.1624, allocations: 0.7752 MB / 361 MB, free: 1.871 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1625, allocations: 0 / 361 MB, free: 1.871 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1625, allocations: 0 / 361 MB, free: 1.871 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.1625, allocations: 0 / 361 MB, free: 1.871 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.001703/0.1642, allocations: 1.129 MB / 362.2 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.1643, allocations: 12.03 kB / 362.2 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000177/0.1644, allocations: 130.4 kB / 362.3 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008795/0.1653, allocations: 0.588 MB / 362.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.586e-05/0.1654, allocations: 74 kB / 363 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.1655, allocations: 96 kB / 363.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.1672, allocations: 1.031 MB / 364.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.538e-05/0.1673, allocations: 7.938 kB / 364.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-05/0.1673, allocations: 44 kB / 364.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.423e-05/0.1674, allocations: 24 kB / 364.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.1685, allocations: 0.5578 MB / 364.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005101/0.1736, allocations: 5.532 MB / 370.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005572/0.1742, allocations: 240.9 kB / 370.5 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000301/0.1745, allocations: 157.7 kB / 370.7 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001957/0.1747, allocations: 97.06 kB / 370.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.1747, allocations: 38.56 kB / 370.8 MB, free: 7.574 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.845e-06/0.1747, allocations: 0 / 370.8 MB, free: 7.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003941/0.1787, allocations: 1.769 MB / 372.6 MB, free: 5.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.1788, allocations: 85.11 kB / 372.6 MB, free: 5.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007187/0.1795, allocations: 0.6178 MB / 373.3 MB, free: 4.973 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.1795, allocations: 33.7 kB / 373.3 MB, free: 4.934 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004087/0.1799, allocations: 0.6064 MB / 373.9 MB, free: 4.316 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.1801, allocations: 145.9 kB / 374 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/0.1801, allocations: 16 kB / 374.1 MB, free: 4.156 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.1803, allocations: 382.8 kB / 374.4 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.1806, allocations: 157.9 kB / 374.6 MB, free: 3.617 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005078/0.1811, allocations: 0.501 MB / 375.1 MB, free: 2.957 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003914/0.1815, allocations: 227.8 kB / 375.3 MB, free: 2.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.1815, allocations: 4 kB / 375.3 MB, free: 2.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001129/0.1827, allocations: 0.7273 MB / 376 MB, free: 1.996 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.1827, allocations: 13.72 kB / 376 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.1827, allocations: 12.03 kB / 376.1 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.947e-05/0.1827, allocations: 20 kB / 376.1 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006231/0.1834, allocations: 195.7 kB / 376.3 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.577e-05/0.1834, allocations: 23.88 kB / 376.3 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.1838, allocations: 39.98 kB / 376.3 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-05/0.1838, allocations: 44 kB / 376.4 MB, free: 1.656 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003134/0.1841, allocations: 225.5 kB / 376.6 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.1843, allocations: 83 kB / 376.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.1844, allocations: 70.55 kB / 376.7 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1844, allocations: 4 kB / 376.8 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.1844, allocations: 0 / 376.8 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.1844, allocations: 3.984 kB / 376.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/0.1866, allocations: 1.366 MB / 378.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.1866, allocations: 4 kB / 378.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004522/0.187, allocations: 107.9 kB / 378.2 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.726e-06/0.1871, allocations: 8.156 kB / 378.2 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/0.1871, allocations: 12 kB / 378.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.233e-06/0.1871, allocations: 7.953 kB / 378.3 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.1871, allocations: 0 / 378.3 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.1882, allocations: 0.7203 MB / 379 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.1884, allocations: 140.3 kB / 379.1 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.545e-05/0.1884, allocations: 12 kB / 379.1 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002836/0.1887, allocations: 39.92 kB / 379.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.188e-05/0.1888, allocations: 31.89 kB / 379.2 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.1889, allocations: 8 kB / 379.2 MB, free: 14.69 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005048/0.1894, allocations: 419 kB / 379.6 MB, free: 14.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1894, allocations: 0 / 379.6 MB, free: 14.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007408/0.1901, allocations: 140 kB / 379.8 MB, free: 14.15 MB / 318.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 (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.0001747/0.1903, allocations: 113.4 kB / 379.9 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008386/0.1912, allocations: 458.2 kB / 380.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1912, allocations: 0 / 380.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003272/0.1915, allocations: 172.2 kB / 380.5 MB, free: 13.42 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005366/0.1921, allocations: 67.31 kB / 380.5 MB, free: 13.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003204/0.1953, allocations: 2.086 MB / 382.6 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006875/0.196, allocations: 1.008 MB / 383.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003087/0.1963, allocations: 94 kB / 383.7 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001446/0.1964, allocations: 59.42 kB / 383.8 MB, free: 10.03 MB / 318.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1965, allocations: 4 kB / 383.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Templates: time 0.01096/0.2074, allocations: 4.516 MB / 388.3 MB, free: 5.523 MB / 318.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