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.001129/0.001128, allocations: 106.4 kB / 16.62 MB, free: 6.961 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.001082/0.001082, allocations: 189.8 kB / 17.55 MB, free: 6.066 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.34/1.34, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 41.28 kB / 300.1 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1566, allocations: 49.45 MB / 349.6 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.01161/0.1682, allocations: 5.361 MB / 354.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004596/0.1729, allocations: 1.418 MB / 356.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.174, allocations: 23.88 kB / 356.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009474/0.1749, allocations: 166.6 kB / 356.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001287/0.1763, allocations: 158.6 kB / 356.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.1778, allocations: 339.7 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002157/0.18, allocations: 1.122 MB / 358.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001109/0.1811, allocations: 480.2 kB / 358.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007949/0.1819, allocations: 398.3 kB / 359 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008499/0.1828, allocations: 433.5 kB / 359.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000274/0.1831, allocations: 84 kB / 359.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002444/0.1834, allocations: 99.98 kB / 359.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.1836, allocations: 211.1 kB / 359.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004737/0.184, allocations: 0.4971 MB / 360.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.1851, allocations: 1.117 MB / 361.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1851, allocations: 0 / 361.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1851, allocations: 0 / 361.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.298e-05/0.1852, allocations: 0 / 361.4 MB, free: 8.598 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.00214/0.1873, allocations: 1.313 MB / 362.7 MB, free: 7.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1874, allocations: 15.89 kB / 362.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002036/0.1876, allocations: 126.5 kB / 362.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009047/0.1885, allocations: 0.6146 MB / 363.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.186e-05/0.1885, allocations: 77.88 kB / 363.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.1887, allocations: 100 kB / 363.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001757/0.1904, allocations: 1.027 MB / 364.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.362e-05/0.1905, allocations: 11.88 kB / 364.7 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.836e-05/0.1906, allocations: 44 kB / 364.8 MB, free: 5.055 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.135e-05/0.1906, allocations: 28 kB / 364.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.1918, allocations: 0.5578 MB / 365.3 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.172/0.3639, allocations: 5.516 MB / 370.9 MB, free: 21.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005803/0.3645, allocations: 230.5 kB / 371.1 MB, free: 21.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.3648, allocations: 156.2 kB / 371.2 MB, free: 21.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001539/0.365, allocations: 92.66 kB / 371.3 MB, free: 21.47 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/0.365, allocations: 35.47 kB / 371.4 MB, free: 21.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.445e-06/0.365, allocations: 1.312 kB / 371.4 MB, free: 21.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003931/0.3689, allocations: 1.713 MB / 373.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.369, allocations: 82.08 kB / 373.2 MB, free: 20.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007733/0.3698, allocations: 0.6322 MB / 373.8 MB, free: 20.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.3698, allocations: 35.2 kB / 373.8 MB, free: 20.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003621/0.3702, allocations: 0.6022 MB / 374.4 MB, free: 20.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.3703, allocations: 147.8 kB / 374.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.3705, allocations: 133.3 kB / 374.7 MB, free: 19.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.3706, allocations: 385.7 kB / 375.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/0.371, allocations: 154.2 kB / 375.2 MB, free: 19.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004573/0.3714, allocations: 0.4906 MB / 375.7 MB, free: 18.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007574/0.3722, allocations: 0.6921 MB / 376.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.3722, allocations: 6.75 kB / 376.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001139/0.3733, allocations: 0.7197 MB / 377.1 MB, free: 18.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.3734, allocations: 10.16 kB / 377.1 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.3734, allocations: 11.72 kB / 377.2 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.219e-05/0.3734, allocations: 16.91 kB / 377.2 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006504/0.3741, allocations: 195.8 kB / 377.4 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.108e-05/0.3741, allocations: 30.88 kB / 377.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/0.3745, allocations: 35.23 kB / 377.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.924e-05/0.3746, allocations: 40.53 kB / 377.5 MB, free: 18.04 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.0003015/0.3749, allocations: 226.3 kB / 377.7 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.3751, allocations: 79.16 kB / 377.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000132/0.3752, allocations: 72.83 kB / 377.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.3752, allocations: 5.688 kB / 377.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.3752, allocations: 4.75 kB / 377.8 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.3753, allocations: 3.125 kB / 377.8 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00197/0.3772, allocations: 1.328 MB / 379.2 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.3772, allocations: 2.781 kB / 379.2 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004563/0.3777, allocations: 106.4 kB / 379.3 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.3777, allocations: 2.625 kB / 379.3 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.3778, allocations: 10.58 kB / 379.3 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.3778, allocations: 3.062 kB / 379.3 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3778, allocations: 6.766 kB / 379.3 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009498/0.3787, allocations: 0.695 MB / 380 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.3789, allocations: 138.8 kB / 380.1 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.719e-05/0.3789, allocations: 12.62 kB / 380.1 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003143/0.3793, allocations: 24.59 kB / 380.2 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.462e-05/0.3793, allocations: 39.88 kB / 380.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.3794, allocations: 18.22 kB / 380.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004616/0.3798, allocations: 419.8 kB / 380.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3799, allocations: 1.219 kB / 380.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006855/0.3805, allocations: 136.3 kB / 380.8 MB, free: 16.2 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.0001232/0.3807, allocations: 120.2 kB / 380.9 MB, free: 16.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007878/0.3815, allocations: 444.7 kB / 381.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3815, allocations: 1.688 kB / 381.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.3818, allocations: 155.9 kB / 381.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005575/0.3823, allocations: 78.97 kB / 381.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003116/0.3855, allocations: 2.101 MB / 383.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005384/0.386, allocations: 1.001 MB / 384.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003286/0.3863, allocations: 94.33 kB / 384.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001511/0.3865, allocations: 63.41 kB / 384.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3865, allocations: 1.219 kB / 384.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of Templates: time 0.01015/0.3967, allocations: 4.859 MB / 389.7 MB, free: 12.43 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