Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") [: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.0009614/0.0009614, allocations: 186 kB / 8.136 MB, free: 2.195 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.078 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.0009669/0.0009668, allocations: 90.14 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.163e-06/7.184e-06, allocations: 4 kB / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1982, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08142/0.2796, allocations: 78.58 MB / 465.5 MB, free: 8.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001813/0.2798, allocations: 69 kB / 465.6 MB, free: 8.164 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01346/0.2933, allocations: 4.83 MB / 470.4 MB, free: 3.348 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.2934, allocations: 4 kB / 470.4 MB, free: 3.344 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.0007449/0.2941, allocations: 0.5568 MB / 470.9 MB, free: 2.742 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2942, allocations: 8.031 kB / 471 MB, free: 2.734 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.148e-05/0.2942, allocations: 41.31 kB / 471 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.2946, allocations: 254.5 kB / 471.2 MB, free: 2.406 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.2946, allocations: 12 kB / 471.3 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.471e-05/0.2946, allocations: 20 kB / 471.3 MB, free: 2.375 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003245/0.295, allocations: 169.2 kB / 471.4 MB, free: 2.207 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.2953, allocations: 212.8 kB / 471.6 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2954, allocations: 0 / 471.6 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.2954, allocations: 4 kB / 471.7 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.2954, allocations: 11.98 kB / 471.7 MB, free: 1.977 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.297, allocations: 0.9946 MB / 472.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.2972, allocations: 93.77 kB / 472.7 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.2974, allocations: 108.9 kB / 472.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.2974, allocations: 0 / 472.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.2974, allocations: 38.56 kB / 472.9 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.132e-06/0.2974, allocations: 0 / 472.9 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.000283/0.2977, allocations: 148.5 kB / 473 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.2978, allocations: 55.41 kB / 473.1 MB, free: 456 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.2979, allocations: 163.2 kB / 473.3 MB, free: 284 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.2979, allocations: 25.7 kB / 473.3 MB, free: 252 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.519e-05/0.298, allocations: 179.7 kB / 473.5 MB, free: 68 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.281e-05/0.2981, allocations: 71.03 kB / 473.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-06/0.2981, allocations: 4 kB / 473.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.2982, allocations: 338.7 kB / 473.9 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.333e-05/0.2983, allocations: 44.56 kB / 473.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.2985, allocations: 118.3 kB / 474 MB, free: 15.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.2986, allocations: 73.38 kB / 474.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2986, allocations: 1.219 kB / 474.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003253/0.2989, allocations: 210.8 kB / 474.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.2989, allocations: 4 kB / 474.3 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.299, allocations: 4 kB / 474.3 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.299, allocations: 7.984 kB / 474.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003253/0.2993, allocations: 83.81 kB / 474.4 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/0.2993, allocations: 4 kB / 474.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001818/0.2995, allocations: 27.89 kB / 474.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.2995, allocations: 8 kB / 474.4 MB, free: 15.04 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 7.347e-05/0.2996, allocations: 112.8 kB / 474.5 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.308e-05/0.2997, allocations: 19.81 kB / 474.6 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002529/0.2999, allocations: 154.3 kB / 474.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3, allocations: 4 kB / 474.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3, allocations: 4.844 kB / 474.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3, allocations: 3.906 kB / 474.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006047/0.3006, allocations: 0.5084 MB / 475.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3006, allocations: 0 / 475.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003182/0.3009, allocations: 59.91 kB / 475.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3009, allocations: 8.062 kB / 475.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.301, allocations: 0 / 475.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.301, allocations: 7.984 kB / 475.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.301, allocations: 3.906 kB / 475.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003658/0.3013, allocations: 340.3 kB / 475.6 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/0.3014, allocations: 108.8 kB / 475.7 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.357e-05/0.3014, allocations: 0 / 475.7 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.3017, allocations: 19.98 kB / 475.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/0.3017, allocations: 7.984 kB / 475.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.3017, allocations: 12 kB / 475.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.728e-05/0.3018, allocations: 138.6 kB / 475.9 MB, free: 13.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003195/0.3022, allocations: 75.69 kB / 476 MB, free: 13.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0001295/0.3023, allocations: 103.2 kB / 476.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002268/0.3025, allocations: 134.5 kB / 476.2 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3025, allocations: 4.438 kB / 476.2 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.87e-05/0.3026, allocations: 71.94 kB / 476.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.3029, allocations: 22.98 kB / 476.3 MB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.3039, allocations: 0.6638 MB / 477 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003507/0.3043, allocations: 0.7975 MB / 477.8 MB, free: 11.52 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3043, allocations: 7.938 kB / 477.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of Templates: time 0.004525/0.3088, allocations: 1.878 MB / 479.7 MB, free: 9.656 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches