Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit.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.ChuaCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|C1.v|C2.v|L.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit") translateModel(Modelica.Electrical.Analog.Examples.ChuaCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|C1.v|C2.v|L.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit") [: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.0009669/0.000967, allocations: 181.8 kB / 8.134 MB, free: 2.207 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.145/1.145, allocations: 221.4 MB / 229.9 MB, free: 3.094 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.0009443/0.0009443, allocations: 104.5 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.106e-05/1.109e-05, allocations: 4 kB / 336.5 MB, free: 9.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2388, allocations: 50.4 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1023/0.3411, allocations: 77.12 MB / 464 MB, free: 9.707 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001751/0.3413, allocations: 67.91 kB / 464.1 MB, free: 9.641 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.008175/0.3495, allocations: 2.944 MB / 467 MB, free: 6.715 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.3496, allocations: 8 kB / 467 MB, free: 6.707 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006911/0.3503, allocations: 461.9 kB / 467.5 MB, free: 6.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3503, allocations: 12.03 kB / 467.5 MB, free: 6.199 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.631e-05/0.3504, allocations: 19.72 kB / 467.5 MB, free: 6.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.3507, allocations: 210.8 kB / 467.7 MB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.3507, allocations: 4 kB / 467.7 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.93e-05/0.3508, allocations: 16 kB / 467.8 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003211/0.3511, allocations: 112 kB / 467.9 MB, free: 5.805 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000339/0.3515, allocations: 141.1 kB / 468 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3515, allocations: 0 / 468 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.3515, allocations: 7.891 kB / 468 MB, free: 5.656 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3515, allocations: 7.984 kB / 468 MB, free: 5.648 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.3528, allocations: 0.72 MB / 468.7 MB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/0.353, allocations: 82.83 kB / 468.8 MB, free: 4.785 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.3531, allocations: 80.92 kB / 468.9 MB, free: 4.703 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.3532, allocations: 4 kB / 468.9 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.3532, allocations: 31.5 kB / 468.9 MB, free: 4.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.3532, allocations: 7.938 kB / 468.9 MB, free: 4.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0002447/0.3534, allocations: 113.5 kB / 469 MB, free: 4.535 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.3535, allocations: 51.41 kB / 469.1 MB, free: 4.473 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.3536, allocations: 128.2 kB / 469.2 MB, free: 4.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.3536, allocations: 25.7 kB / 469.2 MB, free: 4.309 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.652e-05/0.3537, allocations: 132 kB / 469.4 MB, free: 4.176 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.3537, allocations: 47.36 kB / 469.4 MB, free: 4.129 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.243e-06/0.3538, allocations: 0 / 469.4 MB, free: 4.129 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.26e-05/0.3539, allocations: 322.8 kB / 469.7 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.832e-05/0.3539, allocations: 41.78 kB / 469.8 MB, free: 3.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.695e-05/0.354, allocations: 49.72 kB / 469.8 MB, free: 3.711 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.714e-05/0.3541, allocations: 43.98 kB / 469.9 MB, free: 3.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3541, allocations: 0 / 469.9 MB, free: 3.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002167/0.3543, allocations: 152.5 kB / 470 MB, free: 3.516 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.3543, allocations: 4 kB / 470 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3544, allocations: 1.719 kB / 470 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.3544, allocations: 0 / 470 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3547, allocations: 51.91 kB / 470.1 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3547, allocations: 4 kB / 470.1 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.3548, allocations: 18 kB / 470.1 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.3548, allocations: 4 kB / 470.1 MB, free: 3.438 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 7.178e-05/0.3549, allocations: 109 kB / 470.2 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.813e-05/0.3549, allocations: 15.75 kB / 470.2 MB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.761e-05/0.355, allocations: 16.56 kB / 470.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.355, allocations: 0 / 470.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.355, allocations: 0 / 470.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.355, allocations: 0 / 470.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.3552, allocations: 230 kB / 470.5 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3552, allocations: 5.219 kB / 470.5 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002287/0.3555, allocations: 43.91 kB / 470.5 MB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3555, allocations: 0 / 470.5 MB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.3555, allocations: 4 kB / 470.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3555, allocations: 0 / 470.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.3555, allocations: 0 / 470.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002922/0.3558, allocations: 261 kB / 470.8 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-05/0.3559, allocations: 92.92 kB / 470.9 MB, free: 2.602 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.479e-05/0.3559, allocations: 0 / 470.9 MB, free: 2.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.3561, allocations: 16.8 kB / 470.9 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/0.3561, allocations: 7.984 kB / 470.9 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.3561, allocations: 4 kB / 470.9 MB, free: 2.574 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.407e-05/0.3562, allocations: 114.4 kB / 471 MB, free: 2.465 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002604/0.3565, allocations: 45.91 kB / 471 MB, free: 2.422 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,C1.v,C2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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.0001267/0.3566, allocations: 103.1 kB / 471.1 MB, free: 2.312 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001806/0.3568, allocations: 104 kB / 471.2 MB, free: 2.211 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3568, allocations: 0 / 471.2 MB, free: 2.211 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.967e-05/0.3569, allocations: 48 kB / 471.3 MB, free: 2.164 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.3571, allocations: 15.97 kB / 471.3 MB, free: 2.148 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007799/0.3579, allocations: 390.6 kB / 471.7 MB, free: 1.746 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.3582, allocations: 0.743 MB / 472.4 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of SimCode: time 1.563e-06/0.3582, allocations: 4 kB / 472.4 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of Templates: time 0.003774/0.362, allocations: 1.569 MB / 474 MB, free: 15.44 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ChuaCircuit/ChuaCircuit.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ChuaCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,C1.v,C2.v,L.i Variables in the result:C1.C,C1.v,C2.C,C2.v,G.G,G.T,G.T_ref,G.alpha,L.L,L.i,Nr.Ga,Nr.Gb,Nr.Ve,Ro.R,Ro.T,Ro.T_ref,Ro.alpha,time