Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.002273/0.002273, allocations: 178.3 kB / 8.152 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.685/1.685, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001726/0.001725, allocations: 85.77 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.445e-06/8.616e-06, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2275, allocations: 47.56 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.342, allocations: 75.57 MB / 437.4 MB, free: 10.49 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/0.3423, allocations: 63.97 kB / 437.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01257/0.3549, allocations: 2.792 MB / 440.3 MB, free: 7.676 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.355, allocations: 4 kB / 440.3 MB, free: 7.672 MB / 330.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.0008547/0.3559, allocations: 469.9 kB / 440.7 MB, free: 7.172 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3559, allocations: 8.031 kB / 440.7 MB, free: 7.164 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.439e-05/0.356, allocations: 23.72 kB / 440.8 MB, free: 7.141 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.3563, allocations: 222.7 kB / 441 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.3564, allocations: 4 kB / 441 MB, free: 6.879 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.98e-05/0.3564, allocations: 12 kB / 441 MB, free: 6.867 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003688/0.3568, allocations: 108.5 kB / 441.1 MB, free: 6.762 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003822/0.3572, allocations: 132.5 kB / 441.2 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3572, allocations: 4 kB / 441.2 MB, free: 6.625 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.3573, allocations: 7.906 kB / 441.2 MB, free: 6.617 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.3573, allocations: 4 kB / 441.2 MB, free: 6.613 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.3591, allocations: 0.7182 MB / 442 MB, free: 5.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.3595, allocations: 90.83 kB / 442 MB, free: 5.746 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.3597, allocations: 76.86 kB / 442.1 MB, free: 5.668 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.3597, allocations: 11.92 kB / 442.1 MB, free: 5.656 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.3598, allocations: 30.56 kB / 442.2 MB, free: 5.617 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.225e-06/0.3598, allocations: 0 / 442.2 MB, free: 5.617 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004492/0.3603, allocations: 126.6 kB / 442.3 MB, free: 5.488 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.814e-05/0.3604, allocations: 51.41 kB / 442.3 MB, free: 5.426 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.3607, allocations: 129.2 kB / 442.5 MB, free: 5.289 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.623e-05/0.3608, allocations: 25.7 kB / 442.5 MB, free: 5.258 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.361, allocations: 194.5 kB / 442.7 MB, free: 5.062 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.74e-05/0.3611, allocations: 48.38 kB / 442.7 MB, free: 5.016 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.638e-05/0.3611, allocations: 0 / 442.7 MB, free: 5.016 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.3613, allocations: 314.8 kB / 443 MB, free: 4.699 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.3615, allocations: 40 kB / 443.1 MB, free: 4.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.3618, allocations: 65.64 kB / 443.1 MB, free: 4.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.362, allocations: 42.02 kB / 443.2 MB, free: 4.551 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.362, allocations: 0 / 443.2 MB, free: 4.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003897/0.3624, allocations: 133.5 kB / 443.3 MB, free: 4.414 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.3624, allocations: 4 kB / 443.3 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3625, allocations: 4 kB / 443.3 MB, free: 4.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.3625, allocations: 3.984 kB / 443.3 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004377/0.3629, allocations: 50.3 kB / 443.4 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.363, allocations: 2.031 kB / 443.4 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.3631, allocations: 19.83 kB / 443.4 MB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.3632, allocations: 4 kB / 443.4 MB, free: 4.332 MB / 330.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.227e-05/0.3632, allocations: 29.64 kB / 443.4 MB, free: 4.297 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.874e-05/0.3633, allocations: 19.81 kB / 443.4 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.347e-05/0.3634, allocations: 12.56 kB / 443.5 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3634, allocations: 0 / 443.5 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3634, allocations: 4 kB / 443.5 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.3634, allocations: 3.984 kB / 443.5 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000371/0.3638, allocations: 229 kB / 443.7 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3638, allocations: 0 / 443.7 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004204/0.3643, allocations: 39.97 kB / 443.7 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.3643, allocations: 0 / 443.7 MB, free: 3.961 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.3643, allocations: 7.938 kB / 443.7 MB, free: 3.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3643, allocations: 0 / 443.7 MB, free: 3.953 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3643, allocations: 3.906 kB / 443.7 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004678/0.3648, allocations: 264.2 kB / 444 MB, free: 3.676 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-05/0.3649, allocations: 92.91 kB / 444.1 MB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.585e-05/0.3649, allocations: 0 / 444.1 MB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002736/0.3652, allocations: 19.98 kB / 444.1 MB, free: 3.547 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.3653, allocations: 4 kB / 444.1 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.3653, allocations: 7.984 kB / 444.1 MB, free: 3.535 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.501e-05/0.3654, allocations: 100.8 kB / 444.2 MB, free: 3.438 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003437/0.3658, allocations: 43.84 kB / 444.3 MB, free: 3.395 MB / 330.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.0001659/0.3659, allocations: 105.6 kB / 444.4 MB, free: 3.285 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003228/0.3663, allocations: 107.3 kB / 444.5 MB, free: 3.184 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3663, allocations: 0 / 444.5 MB, free: 3.184 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.3664, allocations: 52.94 kB / 444.5 MB, free: 3.133 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.3668, allocations: 21.47 kB / 444.5 MB, free: 3.113 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.3681, allocations: 401.3 kB / 444.9 MB, free: 2.695 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004173/0.3686, allocations: 0.743 MB / 445.7 MB, free: 1.922 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.3686, allocations: 0 / 445.7 MB, free: 1.922 MB / 330.7 MB Notification: Performance of Templates: time 0.004993/0.3736, allocations: 1.931 MB / 447.6 MB, free: 12 kB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ChuaCircuit/ChuaCircuit.csv","../files/Modelica_3.2.3_cpp_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,der(C1.v),C1.i,C1.n.i,C1.n.v,C1.p.i,C1.p.v,C1.v,C2.C,der(C2.v),C2.i,C2.n.i,C2.n.v,C2.p.i,C2.p.v,C2.v,G.G,G.G_actual,G.LossPower,G.T,G.T_heatPort,G.T_ref,G.alpha,G.i,G.n.i,G.n.v,G.p.i,G.p.v,G.useHeatPort,G.v,Gnd.p.i,Gnd.p.v,L.L,der(L.i),L.i,L.n.i,L.n.v,L.p.i,L.p.v,L.v,Nr.Ga,Nr.Gb,Nr.Ve,Nr.i,Nr.n.i,Nr.n.v,Nr.p.i,Nr.p.v,Nr.v,Ro.LossPower,Ro.R,Ro.R_actual,Ro.T,Ro.T_heatPort,Ro.T_ref,Ro.alpha,Ro.i,Ro.n.i,Ro.n.v,Ro.p.i,Ro.p.v,Ro.useHeatPort,Ro.v,time