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.001501/0.001502, allocations: 108.7 kB / 16.51 MB, free: 6.707 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.0019/0.0019, allocations: 190.5 kB / 17.43 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.552/1.552, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 51.17 kB / 299.9 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1271, allocations: 49.44 MB / 349.4 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006495/0.1336, allocations: 5.369 MB / 354.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002956/0.1366, allocations: 1.422 MB / 356.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008817/0.1375, allocations: 27.81 kB / 356.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007044/0.1382, allocations: 166.6 kB / 356.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007466/0.139, allocations: 142.7 kB / 356.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007619/0.1398, allocations: 347.6 kB / 356.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.1408, allocations: 1.068 MB / 357.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006/0.1415, allocations: 431.3 kB / 358.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.1419, allocations: 362.3 kB / 358.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004622/0.1423, allocations: 421.4 kB / 359.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.552e-05/0.1424, allocations: 60 kB / 359.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001841/0.1426, allocations: 72 kB / 359.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.1428, allocations: 195.1 kB / 359.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003927/0.1432, allocations: 481 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000846/0.144, allocations: 1.027 MB / 360.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1441, allocations: 0 / 360.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1441, allocations: 0 / 360.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.1441, allocations: 0 / 360.9 MB, free: 9.031 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.002405/0.1465, allocations: 1.309 MB / 362.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1466, allocations: 11.97 kB / 362.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002476/0.1468, allocations: 122.5 kB / 362.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008093/0.1476, allocations: 0.6146 MB / 363 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.075e-05/0.1477, allocations: 77.94 kB / 363.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.1478, allocations: 99.98 kB / 363.1 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/0.1495, allocations: 1.027 MB / 364.2 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.369e-05/0.1496, allocations: 3.938 kB / 364.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.238e-05/0.1496, allocations: 44 kB / 364.2 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.914e-05/0.1497, allocations: 35.94 kB / 364.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/0.1508, allocations: 0.5578 MB / 364.8 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1889/0.3398, allocations: 5.51 MB / 370.3 MB, free: 21.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007001/0.3405, allocations: 231 kB / 370.5 MB, free: 21.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003143/0.3408, allocations: 160.3 kB / 370.7 MB, free: 21.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000183/0.341, allocations: 85.06 kB / 370.8 MB, free: 21.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.3411, allocations: 40.03 kB / 370.8 MB, free: 21.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.084e-06/0.3411, allocations: 0 / 370.8 MB, free: 21.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003814/0.3449, allocations: 1.716 MB / 372.5 MB, free: 20.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.3449, allocations: 89.31 kB / 372.6 MB, free: 20.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007262/0.3457, allocations: 0.6379 MB / 373.3 MB, free: 20.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.3457, allocations: 35.11 kB / 373.3 MB, free: 20.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/0.346, allocations: 0.5974 MB / 373.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.596e-05/0.3461, allocations: 141.7 kB / 374 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001832/0.3463, allocations: 134.8 kB / 374.2 MB, free: 19.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3465, allocations: 386.4 kB / 374.5 MB, free: 19.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003143/0.3468, allocations: 152.2 kB / 374.7 MB, free: 19.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/0.3472, allocations: 0.4932 MB / 375.2 MB, free: 19.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007052/0.3479, allocations: 0.6929 MB / 375.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.3479, allocations: 4.125 kB / 375.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001041/0.349, allocations: 0.7149 MB / 376.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.349, allocations: 12.62 kB / 376.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.349, allocations: 17.53 kB / 376.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.93e-05/0.3491, allocations: 20.92 kB / 376.7 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006279/0.3497, allocations: 196.2 kB / 376.8 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.56e-05/0.3497, allocations: 27.33 kB / 376.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003431/0.3501, allocations: 33.25 kB / 376.9 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.3501, allocations: 39.06 kB / 376.9 MB, free: 18.13 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.0002361/0.3504, allocations: 230.1 kB / 377.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.3505, allocations: 79.33 kB / 377.2 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.3506, allocations: 73.98 kB / 377.3 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3506, allocations: 8.062 kB / 377.3 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.3506, allocations: 1.375 kB / 377.3 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.3506, allocations: 5.859 kB / 377.3 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.3527, allocations: 1.326 MB / 378.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.3527, allocations: 2.469 kB / 378.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004914/0.3532, allocations: 102.3 kB / 378.8 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.3532, allocations: 2.812 kB / 378.8 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/0.3533, allocations: 14.19 kB / 378.8 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.3533, allocations: 3.219 kB / 378.8 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3533, allocations: 2.281 kB / 378.8 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009608/0.3542, allocations: 0.6958 MB / 379.5 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.243e-05/0.3543, allocations: 138.1 kB / 379.6 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.281e-05/0.3544, allocations: 16.58 kB / 379.6 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.3547, allocations: 21.12 kB / 379.6 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.343e-05/0.3548, allocations: 39.88 kB / 379.7 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-05/0.3548, allocations: 18 kB / 379.7 MB, free: 16.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004943/0.3553, allocations: 421 kB / 380.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3553, allocations: 0 / 380.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006232/0.356, allocations: 136.3 kB / 380.2 MB, free: 16.29 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.0001084/0.3561, allocations: 112.2 kB / 380.4 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007145/0.3568, allocations: 432.1 kB / 380.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3568, allocations: 4.062 kB / 380.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.3571, allocations: 154.1 kB / 380.9 MB, free: 16.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005421/0.3576, allocations: 77.84 kB / 381 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/0.3608, allocations: 2.103 MB / 383.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005732/0.3613, allocations: 1.005 MB / 384.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003231/0.3617, allocations: 94.44 kB / 384.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.3618, allocations: 63.81 kB / 384.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3619, allocations: 0 / 384.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01196/0.3738, allocations: 4.675 MB / 388.9 MB, free: 12.62 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