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.0009727/0.0009726, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.5 MB / 245.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007985/0.0007985, allocations: 101.9 kB / 297.4 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002233/0.0002233, allocations: 8 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1965, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08389/0.2805, allocations: 78.66 MB / 487.3 MB, free: 12.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.2808, allocations: 67.97 kB / 487.4 MB, free: 12.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008153/0.2889, allocations: 3.314 MB / 490.7 MB, free: 9.547 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.289, allocations: 0 / 490.7 MB, free: 9.547 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.289, allocations: 4 kB / 490.7 MB, free: 9.543 MB / 362.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.0005886/0.2896, allocations: 474.8 kB / 491.2 MB, free: 9.027 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.2896, allocations: 12.03 kB / 491.2 MB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.358e-05/0.2897, allocations: 20.75 kB / 491.2 MB, free: 8.996 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001989/0.2899, allocations: 212.1 kB / 491.4 MB, free: 8.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.2899, allocations: 20.36 kB / 491.4 MB, free: 8.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.616e-05/0.29, allocations: 20.38 kB / 491.4 MB, free: 8.711 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003334/0.2903, allocations: 182.1 kB / 491.6 MB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.2903, allocations: 192 / 491.6 MB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.2904, allocations: 11.94 kB / 491.6 MB, free: 8.516 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.2904, allocations: 4 kB / 491.6 MB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002978/0.2907, allocations: 151.9 kB / 491.8 MB, free: 8.363 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.2918, allocations: 0.7624 MB / 492.6 MB, free: 7.531 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003677/0.2922, allocations: 171.3 kB / 492.7 MB, free: 7.355 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.2924, allocations: 96.83 kB / 492.8 MB, free: 7.258 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.2924, allocations: 0 / 492.8 MB, free: 7.258 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.2924, allocations: 34.56 kB / 492.8 MB, free: 7.215 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.132e-06/0.2924, allocations: 0 / 492.8 MB, free: 7.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004449/0.2929, allocations: 205.2 kB / 493 MB, free: 7.012 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.2929, allocations: 55.41 kB / 493.1 MB, free: 6.945 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.293, allocations: 160.8 kB / 493.3 MB, free: 6.781 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.2931, allocations: 29.7 kB / 493.3 MB, free: 6.746 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.084e-05/0.2931, allocations: 140.1 kB / 493.4 MB, free: 6.605 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.606e-05/0.2932, allocations: 51.25 kB / 493.5 MB, free: 6.555 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.838e-06/0.2932, allocations: 4 kB / 493.5 MB, free: 6.551 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.942e-05/0.2933, allocations: 322.8 kB / 493.8 MB, free: 6.227 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.2934, allocations: 55.91 kB / 493.8 MB, free: 6.172 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.2935, allocations: 79.92 kB / 493.9 MB, free: 6.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.2938, allocations: 124.5 kB / 494 MB, free: 5.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2938, allocations: 0 / 494 MB, free: 5.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003227/0.2941, allocations: 185.4 kB / 494.2 MB, free: 5.777 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2942, allocations: 4 kB / 494.2 MB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.2942, allocations: 4 kB / 494.2 MB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.2942, allocations: 3.984 kB / 494.2 MB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.2944, allocations: 51.86 kB / 494.3 MB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.2944, allocations: 0 / 494.3 MB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.2945, allocations: 23.86 kB / 494.3 MB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.2945, allocations: 8 kB / 494.3 MB, free: 5.684 MB / 362.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 9.008e-05/0.2946, allocations: 117.8 kB / 494.4 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.52e-05/0.2947, allocations: 11.91 kB / 494.4 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.07e-05/0.2947, allocations: 24.83 kB / 494.5 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.2947, allocations: 3.938 kB / 494.5 MB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2947, allocations: 0 / 494.5 MB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2948, allocations: 0 / 494.5 MB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.295, allocations: 265.4 kB / 494.7 MB, free: 5.207 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.295, allocations: 0 / 494.7 MB, free: 5.207 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002021/0.2952, allocations: 39.92 kB / 494.8 MB, free: 5.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.2952, allocations: 3.984 kB / 494.8 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.2953, allocations: 8 kB / 494.8 MB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.2953, allocations: 3.938 kB / 494.8 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2953, allocations: 0 / 494.8 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004441/0.2957, allocations: 303.4 kB / 495.1 MB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.345e-05/0.2958, allocations: 88.92 kB / 495.2 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.2958, allocations: 19.97 kB / 495.2 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.296, allocations: 15.94 kB / 495.2 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/0.296, allocations: 7.984 kB / 495.2 MB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.296, allocations: 8 kB / 495.2 MB, free: 4.684 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.361e-05/0.2961, allocations: 119.2 kB / 495.3 MB, free: 4.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2961, allocations: 0 / 495.3 MB, free: 4.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002606/0.2964, allocations: 47.84 kB / 495.4 MB, free: 4.52 MB / 362.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.0001338/0.2965, allocations: 99.25 kB / 495.5 MB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002891/0.2968, allocations: 135.9 kB / 495.6 MB, free: 4.281 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2968, allocations: 0 / 495.6 MB, free: 4.281 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.297, allocations: 67.91 kB / 495.7 MB, free: 4.215 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003343/0.2973, allocations: 28.05 kB / 495.7 MB, free: 4.188 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009327/0.2983, allocations: 0.6632 MB / 496.4 MB, free: 3.492 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.2985, allocations: 0.7243 MB / 497.1 MB, free: 2.742 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.059e-05/0.2986, allocations: 15.44 kB / 497.1 MB, free: 2.727 MB / 362.7 MB Notification: Performance of SimCode: time 3.7e-07/0.2986, allocations: 0 / 497.1 MB, free: 2.727 MB / 362.7 MB Notification: Performance of Templates: time 0.003558/0.3021, allocations: 2 MB / 499.1 MB, free: 0.7383 MB / 362.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/jenkins1/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