Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00111/0.00111, allocations: 115.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001147, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 67.91 kB / 359.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3082, allocations: 50.54 MB / 410 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006285/0.3145, allocations: 5.386 MB / 415.3 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003039/0.3176, allocations: 1.519 MB / 416.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005684/0.3182, allocations: 27.88 kB / 416.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005251/0.3188, allocations: 217.7 kB / 417.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005452/0.3193, allocations: 194 kB / 417.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008212/0.3202, allocations: 415.3 kB / 417.7 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.3213, allocations: 1.126 MB / 418.8 MB, free: 8.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006673/0.322, allocations: 488.2 kB / 419.3 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005581/0.3226, allocations: 406.3 kB / 419.7 MB, free: 7.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004324/0.323, allocations: 433.5 kB / 420.1 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.3231, allocations: 80 kB / 420.2 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002149/0.3234, allocations: 112 kB / 420.3 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001629/0.3235, allocations: 207.1 kB / 420.5 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003973/0.3239, allocations: 0.4971 MB / 421 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.325, allocations: 1.184 MB / 422.2 MB, free: 5.234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.325, allocations: 4 kB / 422.2 MB, free: 5.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3251, allocations: 0 / 422.2 MB, free: 5.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.3251, allocations: 0 / 422.2 MB, free: 5.23 MB / 334.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.001777/0.3269, allocations: 1.313 MB / 423.5 MB, free: 3.867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3269, allocations: 8.031 kB / 423.5 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003612/0.3273, allocations: 142.5 kB / 423.7 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.3283, allocations: 0.6615 MB / 424.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.941e-05/0.3284, allocations: 81.92 kB / 424.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.3285, allocations: 99.91 kB / 424.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.3302, allocations: 1.027 MB / 425.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.622e-05/0.3302, allocations: 11.94 kB / 425.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.249e-05/0.3303, allocations: 40 kB / 425.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.331e-05/0.3303, allocations: 31.94 kB / 425.6 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.3314, allocations: 0.55 MB / 426.2 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004765/0.3362, allocations: 5.485 MB / 431.6 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005857/0.3368, allocations: 244.9 kB / 431.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.3372, allocations: 153.6 kB / 432 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001379/0.3373, allocations: 93.03 kB / 432.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.3373, allocations: 34.56 kB / 432.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 4.779e-06/0.3374, allocations: 4 kB / 432.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003832/0.3412, allocations: 1.712 MB / 433.9 MB, free: 8.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.168e-05/0.3413, allocations: 85.05 kB / 434 MB, free: 8.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007058/0.342, allocations: 0.6373 MB / 434.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.342, allocations: 41.64 kB / 434.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003474/0.3424, allocations: 0.5987 MB / 435.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.412e-05/0.3425, allocations: 146 kB / 435.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.3426, allocations: 138.5 kB / 435.5 MB, free: 7.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3428, allocations: 382.8 kB / 435.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000293/0.3431, allocations: 149.9 kB / 436 MB, free: 6.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004855/0.3436, allocations: 0.4971 MB / 436.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000836/0.3444, allocations: 0.6998 MB / 437.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.3445, allocations: 4 kB / 437.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001137/0.3456, allocations: 0.7099 MB / 437.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.3456, allocations: 12 kB / 437.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.3457, allocations: 12 kB / 438 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.922e-05/0.3457, allocations: 16.72 kB / 438 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006164/0.3463, allocations: 203.6 kB / 438.2 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.642e-05/0.3463, allocations: 27.86 kB / 438.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.3467, allocations: 32 kB / 438.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.775e-05/0.3468, allocations: 39.98 kB / 438.3 MB, free: 4.102 MB / 350.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.0003057/0.3471, allocations: 229.5 kB / 438.5 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.3472, allocations: 75.06 kB / 438.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.3473, allocations: 82.52 kB / 438.7 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.3474, allocations: 4 kB / 438.7 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.3474, allocations: 3.938 kB / 438.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.3474, allocations: 0 / 438.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002004/0.3494, allocations: 1.323 MB / 440 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3494, allocations: 4 kB / 440 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004706/0.3499, allocations: 107.8 kB / 440.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3499, allocations: 4 kB / 440.1 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.3499, allocations: 16.09 kB / 440.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.217e-06/0.3499, allocations: 15.91 kB / 440.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.35, allocations: 4 kB / 440.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009456/0.3509, allocations: 0.6931 MB / 440.8 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.351, allocations: 144.1 kB / 441 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.697e-05/0.3511, allocations: 8.047 kB / 441 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002956/0.3514, allocations: 27.97 kB / 441 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.464e-05/0.3515, allocations: 23.97 kB / 441 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.3515, allocations: 19.98 kB / 441 MB, free: 1.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004643/0.352, allocations: 423 kB / 441.5 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.352, allocations: 0 / 441.5 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006818/0.3527, allocations: 136 kB / 441.6 MB, free: 0.6523 MB / 350.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.0001509/0.3528, allocations: 111.2 kB / 441.7 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007803/0.3536, allocations: 441.7 kB / 442.1 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3537, allocations: 4 kB / 442.1 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002844/0.3539, allocations: 143.8 kB / 442.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005875/0.3545, allocations: 79.11 kB / 442.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.3571, allocations: 1.691 MB / 444 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005249/0.3576, allocations: 1 MB / 445 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.3578, allocations: 75.42 kB / 445.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3578, allocations: 0 / 445.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of Templates: time 0.01391/0.3717, allocations: 9.378 MB / 454.5 MB, free: 3.648 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches