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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002193/0.002192, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.173/2.173, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 94.06 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.811e-05/3.854e-05, allocations: 4 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3895, allocations: 47.55 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1279/0.5175, allocations: 75.64 MB / 438 MB, free: 10.68 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.5179, allocations: 71.95 kB / 438 MB, free: 10.61 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01357/0.5315, allocations: 3.072 MB / 441.1 MB, free: 7.562 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5315, allocations: 4 kB / 441.1 MB, free: 7.559 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.5315, allocations: 0 / 441.1 MB, free: 7.559 MB / 331.1 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.0009184/0.5325, allocations: 468.7 kB / 441.6 MB, free: 7.062 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.5325, allocations: 11.97 kB / 441.6 MB, free: 7.051 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.549e-05/0.5326, allocations: 23.72 kB / 441.6 MB, free: 7.027 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.533, allocations: 206.9 kB / 441.8 MB, free: 6.785 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.533, allocations: 11.95 kB / 441.8 MB, free: 6.773 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.186e-05/0.5331, allocations: 11.91 kB / 441.8 MB, free: 6.762 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003859/0.5335, allocations: 108 kB / 441.9 MB, free: 6.656 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004016/0.5339, allocations: 140.3 kB / 442.1 MB, free: 6.516 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.5339, allocations: 0 / 442.1 MB, free: 6.516 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/0.534, allocations: 1.859 kB / 442.1 MB, free: 6.516 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.534, allocations: 4 kB / 442.1 MB, free: 6.512 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.5358, allocations: 0.7123 MB / 442.8 MB, free: 5.742 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.5363, allocations: 134.5 kB / 442.9 MB, free: 5.602 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001996/0.5365, allocations: 83.92 kB / 443 MB, free: 5.52 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.5365, allocations: 4 kB / 443 MB, free: 5.516 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/0.5366, allocations: 34.55 kB / 443 MB, free: 5.473 MB / 331.1 MB Notification: Performance of pre-optimization done (n=13): time 2.746e-06/0.5366, allocations: 0 / 443 MB, free: 5.473 MB / 331.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003852/0.537, allocations: 114.2 kB / 443.2 MB, free: 5.355 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.537, allocations: 59.41 kB / 443.2 MB, free: 5.285 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.5372, allocations: 129.2 kB / 443.3 MB, free: 5.148 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.5373, allocations: 33.64 kB / 443.4 MB, free: 5.109 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.5374, allocations: 198.6 kB / 443.6 MB, free: 4.914 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.878e-05/0.5375, allocations: 53.61 kB / 443.6 MB, free: 4.863 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.108e-05/0.5375, allocations: 0 / 443.6 MB, free: 4.863 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.5377, allocations: 310.8 kB / 443.9 MB, free: 4.551 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.5378, allocations: 40 kB / 444 MB, free: 4.512 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.5379, allocations: 64.11 kB / 444 MB, free: 4.445 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.5381, allocations: 39.98 kB / 444.1 MB, free: 4.406 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.5381, allocations: 0 / 444.1 MB, free: 4.406 MB / 331.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003681/0.5385, allocations: 136.1 kB / 444.2 MB, free: 4.27 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.5385, allocations: 7.938 kB / 444.2 MB, free: 4.262 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.5385, allocations: 0 / 444.2 MB, free: 4.262 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.5386, allocations: 4 kB / 444.2 MB, free: 4.258 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004227/0.539, allocations: 47.95 kB / 444.3 MB, free: 4.211 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.539, allocations: 4 kB / 444.3 MB, free: 4.207 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.5392, allocations: 11.84 kB / 444.3 MB, free: 4.195 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.5393, allocations: 8 kB / 444.3 MB, free: 4.188 MB / 331.1 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 0.0001119/0.5394, allocations: 104.9 kB / 444.4 MB, free: 4.078 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.5394, allocations: 15.81 kB / 444.4 MB, free: 4.062 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6e-05/0.5395, allocations: 20.73 kB / 444.4 MB, free: 4.043 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.5395, allocations: 0 / 444.4 MB, free: 4.043 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.5396, allocations: 7.953 kB / 444.4 MB, free: 4.035 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.5396, allocations: 0 / 444.4 MB, free: 4.035 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003805/0.54, allocations: 222.1 kB / 444.6 MB, free: 3.781 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.54, allocations: 0 / 444.6 MB, free: 3.781 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004221/0.5404, allocations: 43.92 kB / 444.7 MB, free: 3.738 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.5404, allocations: 0 / 444.7 MB, free: 3.738 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.5405, allocations: 6.172 kB / 444.7 MB, free: 3.734 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.5405, allocations: 0 / 444.7 MB, free: 3.734 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.5405, allocations: 4 kB / 444.7 MB, free: 3.73 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004887/0.541, allocations: 269.4 kB / 445 MB, free: 3.453 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.621e-05/0.5411, allocations: 85.02 kB / 445 MB, free: 3.352 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.5411, allocations: 0 / 445 MB, free: 3.352 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.5414, allocations: 12.03 kB / 445.1 MB, free: 3.34 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.873e-05/0.5415, allocations: 15.98 kB / 445.1 MB, free: 3.324 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.5415, allocations: 0 / 445.1 MB, free: 3.324 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.5416, allocations: 115.2 kB / 445.2 MB, free: 3.211 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5417, allocations: 2.625 kB / 445.2 MB, free: 3.211 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0003942/0.5421, allocations: 43.84 kB / 445.2 MB, free: 3.168 MB / 331.1 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.0001761/0.5423, allocations: 99.25 kB / 445.3 MB, free: 3.062 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0002952/0.5426, allocations: 95.94 kB / 445.4 MB, free: 2.969 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.5426, allocations: 0 / 445.4 MB, free: 2.969 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.5427, allocations: 43.94 kB / 445.5 MB, free: 2.926 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003805/0.5431, allocations: 24.62 kB / 445.5 MB, free: 2.906 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.5444, allocations: 425.7 kB / 445.9 MB, free: 2.465 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.5448, allocations: 0.7318 MB / 446.6 MB, free: 1.707 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.681e-05/0.5449, allocations: 15.44 kB / 446.6 MB, free: 1.691 MB / 331.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5449, allocations: 0 / 446.6 MB, free: 1.691 MB / 331.1 MB Notification: Performance of Templates: time 0.005992/0.5509, allocations: 1.893 MB / 448.5 MB, free: 15.82 MB / 347.1 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