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.001089/0.001089, allocations: 195 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007852/0.000785, allocations: 104.8 kB / 296.8 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002285/0.0002285, allocations: 4 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2186, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ChuaCircuit): time 0.001617/0.2202, allocations: 1.779 MB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006799/0.2209, allocations: 0.5416 MB / 410.4 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.962e-05/0.221, allocations: 0 / 410.4 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.2212, allocations: 29.52 kB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.716e-05/0.2212, allocations: 47.61 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000144/0.2214, allocations: 38.23 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001768/0.2216, allocations: 219 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.2217, allocations: 61.88 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.157e-05/0.2218, allocations: 72.42 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.452e-05/0.2219, allocations: 91.56 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/0.222, allocations: 8 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.85e-05/0.222, allocations: 12 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.628e-05/0.222, allocations: 31.91 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.759e-05/0.2221, allocations: 109.3 kB / 411.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.2222, allocations: 176.5 kB / 411.2 MB, free: 24.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2222, allocations: 0 / 411.2 MB, free: 24.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2222, allocations: 0 / 411.2 MB, free: 24.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.2223, allocations: 4 kB / 411.3 MB, free: 24.48 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.0005464/0.2228, allocations: 466.9 kB / 411.7 MB, free: 23.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2228, allocations: 12.02 kB / 411.7 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.387e-05/0.2229, allocations: 20.75 kB / 411.7 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.2231, allocations: 216 kB / 412 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.2231, allocations: 12.38 kB / 412 MB, free: 23.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.34e-05/0.2231, allocations: 28.22 kB / 412 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.2234, allocations: 181.9 kB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2235, allocations: 0 / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.2235, allocations: 12 kB / 412.2 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.2235, allocations: 4 kB / 412.2 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002659/0.2238, allocations: 143.9 kB / 412.3 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009441/0.2247, allocations: 0.7663 MB / 413.1 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000331/0.2251, allocations: 174.5 kB / 413.3 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.2252, allocations: 96.81 kB / 413.4 MB, free: 22.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.2253, allocations: 4 kB / 413.4 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.2253, allocations: 30.56 kB / 413.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.303e-06/0.2253, allocations: 0 / 413.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004023/0.2257, allocations: 197.8 kB / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.239e-05/0.2257, allocations: 63.28 kB / 413.6 MB, free: 21.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.346e-05/0.2258, allocations: 148.8 kB / 413.8 MB, free: 21.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.2258, allocations: 29.7 kB / 413.8 MB, free: 21.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.2259, allocations: 140.2 kB / 414 MB, free: 21.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.2259, allocations: 43.27 kB / 414 MB, free: 21.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.2259, allocations: 4 kB / 414 MB, free: 21.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.17e-05/0.226, allocations: 322.8 kB / 414.3 MB, free: 21.19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.2261, allocations: 51.97 kB / 414.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.2262, allocations: 79.92 kB / 414.4 MB, free: 21.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.2264, allocations: 128.5 kB / 414.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2265, allocations: 0 / 414.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002744/0.2267, allocations: 185.4 kB / 414.8 MB, free: 20.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.2268, allocations: 8 kB / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.2268, allocations: 3.938 kB / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.2268, allocations: 3.938 kB / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.227, allocations: 47.91 kB / 414.8 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.227, allocations: 0 / 414.8 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.437e-05/0.2271, allocations: 23.88 kB / 414.8 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.2271, allocations: 4 kB / 414.8 MB, free: 20.65 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.289e-05/0.2272, allocations: 129.8 kB / 415 MB, free: 20.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.2272, allocations: 7.906 kB / 415 MB, free: 20.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.52e-05/0.2273, allocations: 20.78 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2273, allocations: 3.938 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2273, allocations: 0 / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2273, allocations: 0 / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002028/0.2275, allocations: 277.4 kB / 415.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2275, allocations: 0 / 415.3 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001939/0.2277, allocations: 43.91 kB / 415.3 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2277, allocations: 4 kB / 415.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.2277, allocations: 11.92 kB / 415.3 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2278, allocations: 0 / 415.3 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2278, allocations: 0 / 415.3 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000376/0.2281, allocations: 315.3 kB / 415.6 MB, free: 19.78 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.775e-05/0.2282, allocations: 85.02 kB / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.2282, allocations: 3.938 kB / 415.7 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.2284, allocations: 24.03 kB / 415.7 MB, free: 19.65 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.201e-05/0.2284, allocations: 11.92 kB / 415.8 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.2284, allocations: 0 / 415.8 MB, free: 19.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.588e-05/0.2285, allocations: 113.5 kB / 415.9 MB, free: 19.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2285, allocations: 0 / 415.9 MB, free: 19.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002644/0.2288, allocations: 47.84 kB / 415.9 MB, free: 19.48 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 0.0001149/0.2289, allocations: 103.2 kB / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002647/0.2292, allocations: 131.9 kB / 416.1 MB, free: 19.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2292, allocations: 0 / 416.1 MB, free: 19.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.2293, allocations: 67.91 kB / 416.2 MB, free: 19.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.2296, allocations: 28.55 kB / 416.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007612/0.2304, allocations: 0.6586 MB / 416.9 MB, free: 18.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.2305, allocations: 0.7243 MB / 417.6 MB, free: 17.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.922e-05/0.2306, allocations: 15.44 kB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2306, allocations: 0 / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of Templates: time 0.002796/0.2334, allocations: 1.995 MB / 419.6 MB, free: 15.71 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.v,C2.v,L.i,time