Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 184.2 kB / 8.138 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.167/1.167, allocations: 221.4 MB / 229.9 MB, free: 3.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009246/0.0009246, allocations: 99.52 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.945e-06/7.975e-06, allocations: 4 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.1747, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08667/0.2614, allocations: 78.6 MB / 465.5 MB, free: 8.207 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.2617, allocations: 75.89 kB / 465.6 MB, free: 8.133 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01481/0.2766, allocations: 4.777 MB / 470.4 MB, free: 3.379 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.2766, allocations: 8 kB / 470.4 MB, free: 3.371 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.0007291/0.2774, allocations: 0.5489 MB / 470.9 MB, free: 2.777 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.2774, allocations: 8.031 kB / 470.9 MB, free: 2.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.385e-05/0.2775, allocations: 35.53 kB / 471 MB, free: 2.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002941/0.2778, allocations: 266.5 kB / 471.2 MB, free: 2.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.2778, allocations: 12 kB / 471.2 MB, free: 2.422 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.569e-05/0.2779, allocations: 23 kB / 471.2 MB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003154/0.2782, allocations: 153.3 kB / 471.4 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.2786, allocations: 204.8 kB / 471.6 MB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.2786, allocations: 0 / 471.6 MB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.312e-05/0.2786, allocations: 0 / 471.6 MB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.2786, allocations: 8 kB / 471.6 MB, free: 2.035 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001469/0.2801, allocations: 0.9484 MB / 472.6 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001786/0.2803, allocations: 85.83 kB / 472.6 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.2804, allocations: 56.86 kB / 472.7 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.2804, allocations: 7.938 kB / 472.7 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.2805, allocations: 38.78 kB / 472.7 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.2805, allocations: 0 / 472.7 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002664/0.2807, allocations: 125.5 kB / 472.9 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.2808, allocations: 59.25 kB / 472.9 MB, free: 0.625 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.2809, allocations: 161.4 kB / 473.1 MB, free: 472 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.281, allocations: 29.7 kB / 473.1 MB, free: 436 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.229e-05/0.2811, allocations: 175.8 kB / 473.3 MB, free: 256 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.088e-05/0.2811, allocations: 71 kB / 473.3 MB, free: 184 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.236e-06/0.2811, allocations: 0 / 473.3 MB, free: 184 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2812, allocations: 330.8 kB / 473.7 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.155e-05/0.2813, allocations: 40.84 kB / 473.7 MB, free: 15.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.2815, allocations: 98.5 kB / 473.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.2816, allocations: 61.83 kB / 473.9 MB, free: 15.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2816, allocations: 0 / 473.9 MB, free: 15.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003046/0.2819, allocations: 185.3 kB / 474 MB, free: 15.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.2819, allocations: 4 kB / 474.1 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.2819, allocations: 7.906 kB / 474.1 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.282, allocations: 0 / 474.1 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003238/0.2823, allocations: 76.02 kB / 474.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.2823, allocations: 4.844 kB / 474.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/0.2825, allocations: 19.78 kB / 474.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.2825, allocations: 8 kB / 474.2 MB, free: 15.33 MB / 362.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 0.0001097/0.2826, allocations: 116.8 kB / 474.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.741e-05/0.2827, allocations: 19.8 kB / 474.3 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002635/0.2829, allocations: 154 kB / 474.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2829, allocations: 0 / 474.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.2829, allocations: 1.438 kB / 474.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.283, allocations: 3.938 kB / 474.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002905/0.2833, allocations: 258.7 kB / 474.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.2833, allocations: 48 / 474.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003302/0.2836, allocations: 63.95 kB / 474.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.2836, allocations: 0 / 474.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.2836, allocations: 7.906 kB / 474.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2836, allocations: 3.938 kB / 474.8 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2836, allocations: 0 / 474.8 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003534/0.284, allocations: 295.6 kB / 475.1 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.489e-05/0.2841, allocations: 93.58 kB / 475.2 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.2841, allocations: 7.984 kB / 475.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.2843, allocations: 16.73 kB / 475.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.2844, allocations: 11.98 kB / 475.2 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.2844, allocations: 4 kB / 475.2 MB, free: 14.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.421e-05/0.2845, allocations: 132.4 kB / 475.3 MB, free: 14.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003179/0.2848, allocations: 75.69 kB / 475.4 MB, free: 14.02 MB / 362.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.0001304/0.285, allocations: 116.8 kB / 475.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002139/0.2852, allocations: 119.9 kB / 475.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.2852, allocations: 0 / 475.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.4e-05/0.2853, allocations: 63.02 kB / 475.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.2855, allocations: 15.56 kB / 475.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.2866, allocations: 0.6503 MB / 476.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000351/0.287, allocations: 0.7981 MB / 477.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.287, allocations: 4 kB / 477.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of Templates: time 0.004653/0.2917, allocations: 1.818 MB / 479 MB, free: 10.4 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches