Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009996/0.0009996, allocations: 203.1 kB / 8.543 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.176/1.176, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008307/0.0008308, allocations: 94.16 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.842e-06/6.882e-06, allocations: 4 kB / 343.1 MB, free: 8.742 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08538/0.0854, allocations: 51.48 MB / 394.6 MB, free: 5.219 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.227/0.3124, allocations: 79.41 MB / 474 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.3127, allocations: 73.3 kB / 474.1 MB, free: 12.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01212/0.3248, allocations: 4.837 MB / 478.9 MB, free: 9.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.3249, allocations: 4 kB / 478.9 MB, free: 9.727 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006894/0.3255, allocations: 0.5487 MB / 479.5 MB, free: 9.152 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.3256, allocations: 12.03 kB / 479.5 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.557e-05/0.3257, allocations: 35.53 kB / 479.5 MB, free: 9.105 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.326, allocations: 258.3 kB / 479.8 MB, free: 8.832 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.326, allocations: 12 kB / 479.8 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.575e-05/0.3261, allocations: 19.12 kB / 479.8 MB, free: 8.805 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002907/0.3263, allocations: 156 kB / 480 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.3267, allocations: 211.5 kB / 480.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.3267, allocations: 0 / 480.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.3267, allocations: 0 / 480.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.3268, allocations: 12 kB / 480.2 MB, free: 8.535 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/0.3281, allocations: 0.9426 MB / 481.1 MB, free: 7.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.3282, allocations: 91.58 kB / 481.2 MB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.259e-05/0.3283, allocations: 63.55 kB / 481.3 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.3284, allocations: 4.312 kB / 481.3 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.3284, allocations: 41.66 kB / 481.3 MB, free: 7.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.483e-06/0.3284, allocations: 0 / 481.3 MB, free: 7.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002708/0.3287, allocations: 126.3 kB / 481.4 MB, free: 7.406 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.724e-05/0.3287, allocations: 55.34 kB / 481.5 MB, free: 7.344 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.3288, allocations: 153.6 kB / 481.7 MB, free: 7.207 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.3289, allocations: 29.7 kB / 481.7 MB, free: 7.172 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/0.3289, allocations: 182.5 kB / 481.9 MB, free: 7.004 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.329, allocations: 62.64 kB / 481.9 MB, free: 6.949 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.155e-06/0.329, allocations: 0 / 481.9 MB, free: 6.949 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.783e-05/0.329, allocations: 330.4 kB / 482.2 MB, free: 6.625 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.372e-05/0.3291, allocations: 47.06 kB / 482.3 MB, free: 6.598 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.628e-05/0.3292, allocations: 98.44 kB / 482.4 MB, free: 6.504 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.311e-05/0.3293, allocations: 51.98 kB / 482.4 MB, free: 6.473 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3293, allocations: 4 kB / 482.4 MB, free: 6.469 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002593/0.3296, allocations: 199.7 kB / 482.6 MB, free: 6.312 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.3296, allocations: 4.125 kB / 482.6 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3296, allocations: 4 kB / 482.6 MB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.3296, allocations: 4 kB / 482.6 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.3299, allocations: 63.91 kB / 482.7 MB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.3299, allocations: 4 kB / 482.7 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.3301, allocations: 27.77 kB / 482.7 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.3301, allocations: 11.69 kB / 482.8 MB, free: 6.199 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 5.266e-05/0.3302, allocations: 108.8 kB / 482.9 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/0.3302, allocations: 19.81 kB / 482.9 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002157/0.3304, allocations: 144.2 kB / 483 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3304, allocations: 4 kB / 483 MB, free: 5.953 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3304, allocations: 0 / 483 MB, free: 5.953 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.3305, allocations: 0 / 483 MB, free: 5.953 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002196/0.3307, allocations: 260.6 kB / 483.3 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3307, allocations: 7.984 kB / 483.3 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002943/0.331, allocations: 59.09 kB / 483.3 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.331, allocations: 3.906 kB / 483.3 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.331, allocations: 0 / 483.3 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.331, allocations: 4 kB / 483.4 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.331, allocations: 0 / 483.4 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002776/0.3313, allocations: 302.3 kB / 483.6 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.796e-05/0.3314, allocations: 92.86 kB / 483.7 MB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.512e-05/0.3314, allocations: 0.5625 kB / 483.7 MB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.3316, allocations: 16.03 kB / 483.8 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.135e-05/0.3316, allocations: 23.81 kB / 483.8 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.3317, allocations: 11.55 kB / 483.8 MB, free: 5.215 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.954e-05/0.3317, allocations: 129.2 kB / 483.9 MB, free: 5.105 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003656/0.3321, allocations: 71.69 kB / 484 MB, free: 5.035 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0001543/0.3323, allocations: 106.3 kB / 484.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002516/0.3325, allocations: 122.9 kB / 484.2 MB, free: 4.832 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3325, allocations: 1.688 kB / 484.2 MB, free: 4.832 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.636e-05/0.3326, allocations: 64.33 kB / 484.3 MB, free: 4.785 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/0.3329, allocations: 18.61 kB / 484.3 MB, free: 4.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.3339, allocations: 0.6452 MB / 484.9 MB, free: 4.145 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.3341, allocations: 0.7942 MB / 485.7 MB, free: 3.324 MB / 346.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3341, allocations: 0 / 485.7 MB, free: 3.324 MB / 346.7 MB Notification: Performance of Templates: time 0.004052/0.3382, allocations: 1.827 MB / 487.6 MB, free: 1.559 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches