Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001015/0.001015, allocations: 196.8 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001149/0.001149, allocations: 90.31 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.904e-06/7.934e-06, allocations: 4 kB / 343.1 MB, free: 8.738 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08053/0.08055, allocations: 51.47 MB / 394.6 MB, free: 5.211 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2293/0.3099, allocations: 79.39 MB / 474 MB, free: 12.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001762/0.3101, allocations: 67.33 kB / 474.1 MB, free: 12.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0121/0.3222, allocations: 4.885 MB / 479 MB, free: 9.988 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.3223, allocations: 4 kB / 479 MB, free: 9.984 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.00064/0.3229, allocations: 0.5527 MB / 479.5 MB, free: 9.406 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.323, allocations: 16.02 kB / 479.5 MB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.139e-05/0.3231, allocations: 39.53 kB / 479.6 MB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002564/0.3233, allocations: 259.9 kB / 479.8 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.3234, allocations: 12 kB / 479.8 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.251e-05/0.3234, allocations: 19.94 kB / 479.9 MB, free: 9.047 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002857/0.3237, allocations: 169.7 kB / 480 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.324, allocations: 207.7 kB / 480.2 MB, free: 8.789 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.324, allocations: 4 kB / 480.2 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.3241, allocations: 1.312 kB / 480.2 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3241, allocations: 11.28 kB / 480.2 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.3255, allocations: 0.9942 MB / 481.2 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.3256, allocations: 95.75 kB / 481.3 MB, free: 7.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.3258, allocations: 111 kB / 481.4 MB, free: 7.746 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.3258, allocations: 0 / 481.4 MB, free: 7.746 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.3259, allocations: 42.31 kB / 481.5 MB, free: 7.699 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.032e-06/0.3259, allocations: 0 / 481.5 MB, free: 7.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002416/0.3261, allocations: 133.2 kB / 481.6 MB, free: 7.586 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.644e-05/0.3261, allocations: 60.25 kB / 481.7 MB, free: 7.516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.3263, allocations: 157.2 kB / 481.8 MB, free: 7.375 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.3263, allocations: 25.7 kB / 481.8 MB, free: 7.344 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.552e-05/0.3263, allocations: 179.1 kB / 482 MB, free: 7.176 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.3264, allocations: 70.44 kB / 482.1 MB, free: 7.117 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-06/0.3264, allocations: 0 / 482.1 MB, free: 7.117 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.409e-05/0.3264, allocations: 339.2 kB / 482.4 MB, free: 6.785 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.309e-05/0.3265, allocations: 43.69 kB / 482.5 MB, free: 6.762 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.906e-05/0.3266, allocations: 129.2 kB / 482.6 MB, free: 6.629 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.3267, allocations: 71.22 kB / 482.7 MB, free: 6.582 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3267, allocations: 0 / 482.7 MB, free: 6.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002664/0.327, allocations: 209.4 kB / 482.9 MB, free: 6.414 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.327, allocations: 4 kB / 482.9 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.327, allocations: 8.25 kB / 482.9 MB, free: 6.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3271, allocations: 11.09 kB / 482.9 MB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003206/0.3274, allocations: 75.89 kB / 483 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.3274, allocations: 4 kB / 483 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.3276, allocations: 29.27 kB / 483 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.3276, allocations: 11.88 kB / 483 MB, free: 6.281 MB / 346.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 5.192e-05/0.3276, allocations: 116.7 kB / 483.1 MB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.106e-05/0.3277, allocations: 19.81 kB / 483.1 MB, free: 6.141 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002154/0.3279, allocations: 152.2 kB / 483.3 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3279, allocations: 4 kB / 483.3 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3279, allocations: 3.906 kB / 483.3 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3279, allocations: 0 / 483.3 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004639/0.3284, allocations: 0.5197 MB / 483.8 MB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3284, allocations: 0 / 483.8 MB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002933/0.3287, allocations: 59.53 kB / 483.9 MB, free: 5.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3287, allocations: 4 kB / 483.9 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.3288, allocations: 2.062 kB / 483.9 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3288, allocations: 7.969 kB / 483.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3288, allocations: 4 kB / 483.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002682/0.329, allocations: 331.2 kB / 484.2 MB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.231e-05/0.3291, allocations: 104.8 kB / 484.3 MB, free: 5.031 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.3291, allocations: 4 kB / 484.3 MB, free: 5.027 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.3293, allocations: 15.98 kB / 484.3 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.3294, allocations: 15.86 kB / 484.3 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.3294, allocations: 4 kB / 484.4 MB, free: 4.996 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.591e-05/0.3294, allocations: 146.1 kB / 484.5 MB, free: 4.875 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002972/0.3297, allocations: 75.69 kB / 484.6 MB, free: 4.801 MB / 346.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.0001106/0.3299, allocations: 103.2 kB / 484.7 MB, free: 4.688 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002011/0.3301, allocations: 138.4 kB / 484.8 MB, free: 4.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3301, allocations: 0 / 484.8 MB, free: 4.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.34e-05/0.3302, allocations: 71.33 kB / 484.9 MB, free: 4.535 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00021/0.3304, allocations: 25.48 kB / 484.9 MB, free: 4.516 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008904/0.3313, allocations: 0.6589 MB / 485.6 MB, free: 3.875 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001996/0.3315, allocations: 0.7964 MB / 486.4 MB, free: 3.059 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3315, allocations: 0 / 486.4 MB, free: 3.059 MB / 346.7 MB Notification: Performance of Templates: time 0.003951/0.3354, allocations: 1.888 MB / 488.2 MB, free: 1.23 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches