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.001313/0.001313, allocations: 179.9 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.325/1.325, allocations: 205.4 MB / 222.5 MB, free: 9.043 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.0007519/0.0007519, allocations: 93.47 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002843/0.0002847, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.211/0.2113, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ChuaCircuit): time 0.001578/0.213, allocations: 1.76 MB / 376.3 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006433/0.2136, allocations: 0.5393 MB / 376.8 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.226e-05/0.2137, allocations: 3.062 kB / 376.9 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.383e-05/0.2138, allocations: 23.92 kB / 376.9 MB, free: 43.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.917e-05/0.2139, allocations: 58.28 kB / 376.9 MB, free: 43.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001354/0.2141, allocations: 44.67 kB / 377 MB, free: 43.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000179/0.2143, allocations: 208.1 kB / 377.2 MB, free: 43.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.2144, allocations: 59.05 kB / 377.2 MB, free: 43.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.077e-05/0.2145, allocations: 74.59 kB / 377.3 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.2146, allocations: 82.33 kB / 377.4 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/0.2146, allocations: 11.62 kB / 377.4 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.33e-05/0.2147, allocations: 10.88 kB / 377.4 MB, free: 43.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.383e-05/0.2147, allocations: 33.31 kB / 377.4 MB, free: 43.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.801e-05/0.2147, allocations: 56.45 kB / 377.5 MB, free: 43.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.2149, allocations: 171.9 kB / 377.7 MB, free: 43.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2149, allocations: 0 / 377.7 MB, free: 43.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2149, allocations: 0 / 377.7 MB, free: 43.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.2149, allocations: 1.031 kB / 377.7 MB, free: 43.02 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.0005524/0.2155, allocations: 474.8 kB / 378.1 MB, free: 42.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.831e-05/0.2155, allocations: 8.156 kB / 378.1 MB, free: 42.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.439e-05/0.2156, allocations: 19.28 kB / 378.2 MB, free: 42.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.2157, allocations: 224.1 kB / 378.4 MB, free: 42.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.2157, allocations: 18.7 kB / 378.4 MB, free: 42.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.505e-05/0.2158, allocations: 20.62 kB / 378.4 MB, free: 42.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003278/0.2161, allocations: 181.7 kB / 378.6 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.2161, allocations: 4 kB / 378.6 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.2162, allocations: 10.25 kB / 378.6 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.2162, allocations: 9.031 kB / 378.6 MB, free: 42.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002931/0.2165, allocations: 143.6 kB / 378.8 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009716/0.2175, allocations: 0.7591 MB / 379.5 MB, free: 41.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.2178, allocations: 177 kB / 379.7 MB, free: 41.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.218, allocations: 99.7 kB / 379.8 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.218, allocations: 1.062 kB / 379.8 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.638e-05/0.2181, allocations: 31.75 kB / 379.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.2181, allocations: 1.062 kB / 379.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004202/0.2185, allocations: 200.8 kB / 380 MB, free: 41.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.848e-05/0.2185, allocations: 54.12 kB / 380.1 MB, free: 41.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.921e-05/0.2186, allocations: 156.9 kB / 380.2 MB, free: 40.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.2186, allocations: 29.7 kB / 380.2 MB, free: 40.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.599e-05/0.2187, allocations: 145.5 kB / 380.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.2187, allocations: 41.05 kB / 380.4 MB, free: 40.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-06/0.2187, allocations: 4 kB / 380.4 MB, free: 40.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.865e-05/0.2188, allocations: 322.1 kB / 380.7 MB, free: 40.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.2189, allocations: 58.03 kB / 380.8 MB, free: 40.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.219, allocations: 75.31 kB / 380.9 MB, free: 40.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.2192, allocations: 60.48 kB / 380.9 MB, free: 40.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2192, allocations: 1.031 kB / 380.9 MB, free: 40.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003386/0.2195, allocations: 183.8 kB / 381.1 MB, free: 40.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2196, allocations: 4.844 kB / 381.1 MB, free: 40.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2196, allocations: 1.594 kB / 381.1 MB, free: 40.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.2196, allocations: 13.19 kB / 381.1 MB, free: 40.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.2198, allocations: 41.83 kB / 381.2 MB, free: 40.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.2198, allocations: 1.188 kB / 381.2 MB, free: 40.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.2199, allocations: 23.83 kB / 381.2 MB, free: 40.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.22, allocations: 4.219 kB / 381.2 MB, free: 40.23 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 7.73e-05/0.22, allocations: 128.5 kB / 381.3 MB, free: 40.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.2201, allocations: 14 kB / 381.3 MB, free: 40.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.108e-05/0.2201, allocations: 19.31 kB / 381.4 MB, free: 40.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.2201, allocations: 5.203 kB / 381.4 MB, free: 40.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2201, allocations: 5.359 kB / 381.4 MB, free: 40.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.2201, allocations: 0 / 381.4 MB, free: 40.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.2204, allocations: 262.5 kB / 381.6 MB, free: 39.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2204, allocations: 0 / 381.6 MB, free: 39.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.2206, allocations: 33.92 kB / 381.7 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2206, allocations: 1.406 kB / 381.7 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.2206, allocations: 5.312 kB / 381.7 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2206, allocations: 3.984 kB / 381.7 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2206, allocations: 12.98 kB / 381.7 MB, free: 39.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004141/0.2211, allocations: 309.7 kB / 382 MB, free: 39.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.839e-05/0.2211, allocations: 88.77 kB / 382.1 MB, free: 39.47 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.2211, allocations: 5.312 kB / 382.1 MB, free: 39.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.2213, allocations: 22.36 kB / 382.1 MB, free: 39.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.733e-05/0.2213, allocations: 11.61 kB / 382.1 MB, free: 39.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.2213, allocations: 7.297 kB / 382.1 MB, free: 39.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.687e-05/0.2214, allocations: 115 kB / 382.2 MB, free: 39.35 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2214, allocations: 0 / 382.2 MB, free: 39.35 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002434/0.2217, allocations: 53.03 kB / 382.3 MB, free: 39.33 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 8.641e-05/0.2217, allocations: 102.4 kB / 382.4 MB, free: 39.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002873/0.222, allocations: 127.2 kB / 382.5 MB, free: 39.19 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2221, allocations: 0 / 382.5 MB, free: 39.19 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.2222, allocations: 72.19 kB / 382.6 MB, free: 39.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.2225, allocations: 19.44 kB / 382.6 MB, free: 39.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008147/0.2233, allocations: 0.6586 MB / 383.3 MB, free: 38.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.2235, allocations: 0.7263 MB / 384 MB, free: 37.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.996e-05/0.2235, allocations: 15.12 kB / 384 MB, free: 37.89 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2235, allocations: 0 / 384 MB, free: 37.89 MB / 298.7 MB Notification: Performance of Templates: time 0.002983/0.2265, allocations: 1.989 MB / 386 MB, free: 36.87 MB / 298.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/jenkins/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,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