Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.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.ChuaCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|C1.v|C2.v|L.i",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009917/0.0009918, allocations: 194.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008214/0.0008215, allocations: 92.67 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002232/0.0002232, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2123, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ChuaCircuit): time 0.00154/0.2139, allocations: 1.789 MB / 409.3 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006324/0.2146, allocations: 0.5279 MB / 409.8 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.902e-05/0.2147, allocations: 4 kB / 409.8 MB, free: 25.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.475e-05/0.2148, allocations: 29.33 kB / 409.8 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.245e-05/0.2148, allocations: 47.61 kB / 409.9 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001376/0.215, allocations: 41.19 kB / 409.9 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.2151, allocations: 211 kB / 410.1 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.2153, allocations: 68.72 kB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.934e-05/0.2154, allocations: 67.77 kB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.171e-05/0.2155, allocations: 87.61 kB / 410.4 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.441e-05/0.2155, allocations: 12 kB / 410.4 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.993e-05/0.2155, allocations: 12 kB / 410.4 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.193e-05/0.2156, allocations: 27.91 kB / 410.4 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.335e-05/0.2156, allocations: 65.58 kB / 410.5 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.2157, allocations: 164.5 kB / 410.6 MB, free: 24.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2157, allocations: 4 kB / 410.6 MB, free: 24.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2157, allocations: 4 kB / 410.6 MB, free: 24.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.2158, allocations: 0 / 410.6 MB, free: 24.67 MB / 298.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.000537/0.2163, allocations: 462.7 kB / 411.1 MB, free: 24.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.2163, allocations: 12.03 kB / 411.1 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.2164, allocations: 19.81 kB / 411.1 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.2166, allocations: 219.5 kB / 411.3 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.2166, allocations: 16 kB / 411.3 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.926e-05/0.2166, allocations: 16 kB / 411.4 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.2169, allocations: 185.5 kB / 411.5 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.217, allocations: 0 / 411.5 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.217, allocations: 7.938 kB / 411.6 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.217, allocations: 12 kB / 411.6 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002617/0.2173, allocations: 147.9 kB / 411.7 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009156/0.2182, allocations: 0.7624 MB / 412.5 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003237/0.2185, allocations: 170.6 kB / 412.6 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.2187, allocations: 100.8 kB / 412.7 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.2187, allocations: 0 / 412.7 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.47e-05/0.2187, allocations: 42.5 kB / 412.8 MB, free: 22.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.2187, allocations: 4 kB / 412.8 MB, free: 22.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003861/0.2191, allocations: 193.2 kB / 413 MB, free: 22.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.366e-05/0.2192, allocations: 55.41 kB / 413 MB, free: 22.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.2193, allocations: 156.8 kB / 413.2 MB, free: 21.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.2193, allocations: 25.7 kB / 413.2 MB, free: 21.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.882e-05/0.2193, allocations: 140 kB / 413.3 MB, free: 21.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.2194, allocations: 47.36 kB / 413.4 MB, free: 21.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.732e-06/0.2194, allocations: 0 / 413.4 MB, free: 21.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.611e-05/0.2194, allocations: 326.8 kB / 413.7 MB, free: 21.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.2195, allocations: 59.97 kB / 413.8 MB, free: 21.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001083/0.2197, allocations: 75.86 kB / 413.8 MB, free: 21.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001107/0.2198, allocations: 60.77 kB / 413.9 MB, free: 21.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2198, allocations: 0 / 413.9 MB, free: 21.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002646/0.2201, allocations: 184.2 kB / 414.1 MB, free: 20.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.2201, allocations: 4 kB / 414.1 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.2201, allocations: 0 / 414.1 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.2201, allocations: 4 kB / 414.1 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001972/0.2203, allocations: 47.91 kB / 414.1 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.2203, allocations: 11.98 kB / 414.1 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.654e-05/0.2204, allocations: 15.92 kB / 414.2 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.2204, allocations: 8 kB / 414.2 MB, free: 20.9 MB / 298.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 () * Number of clocked 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 6.709e-05/0.2205, allocations: 121.8 kB / 414.3 MB, free: 20.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.163e-05/0.2205, allocations: 15.81 kB / 414.3 MB, free: 20.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.162e-05/0.2206, allocations: 20.84 kB / 414.3 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2206, allocations: 3.938 kB / 414.3 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2206, allocations: 0 / 414.3 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.2206, allocations: 11.94 kB / 414.3 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.2208, allocations: 257.5 kB / 414.6 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2208, allocations: 0 / 414.6 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001901/0.221, allocations: 39.98 kB / 414.6 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.221, allocations: 0 / 414.6 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.221, allocations: 4 kB / 414.6 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.221, allocations: 0 / 414.6 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.221, allocations: 3.984 kB / 414.6 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003606/0.2214, allocations: 323 kB / 415 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.477e-05/0.2214, allocations: 85.02 kB / 415 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.2215, allocations: 8 kB / 415 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.2216, allocations: 16.03 kB / 415.1 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.513e-05/0.2217, allocations: 11.98 kB / 415.1 MB, free: 19.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.2217, allocations: 4 kB / 415.1 MB, free: 19.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.114e-05/0.2217, allocations: 118.6 kB / 415.2 MB, free: 19.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2217, allocations: 0 / 415.2 MB, free: 19.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002289/0.222, allocations: 47.84 kB / 415.2 MB, free: 19.74 MB / 298.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 () * Number of clocked 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 9.428e-05/0.2221, allocations: 103.2 kB / 415.3 MB, free: 19.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002582/0.2223, allocations: 135.9 kB / 415.5 MB, free: 19.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2223, allocations: 0 / 415.5 MB, free: 19.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.2225, allocations: 67.98 kB / 415.5 MB, free: 19.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.2228, allocations: 23.98 kB / 415.6 MB, free: 19.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007522/0.2235, allocations: 0.6555 MB / 416.2 MB, free: 18.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.2237, allocations: 0.7282 MB / 416.9 MB, free: 17.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.802e-05/0.2237, allocations: 15.44 kB / 417 MB, free: 17.95 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2237, allocations: 0 / 417 MB, free: 17.95 MB / 298.7 MB Notification: Performance of Templates: time 0.002622/0.2263, allocations: 1.99 MB / 418.9 MB, free: 15.97 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ChuaCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_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,C1.i,C1.n.i,C1.n.v,C1.p.i,C1.p.v,C1.v,C2.C,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.v,Gnd.p.i,Gnd.p.v,L.L,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.v,der(C1.v),der(C2.v),der(L.i),time