Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001718/0.001718, allocations: 197.7 kB / 16.79 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 226.5 MB / 244.1 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008036/0.0008037, allocations: 95.25 kB / 296.1 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3127/0.3127, allocations: 44.83 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002939, allocations: 8 kB / 465.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3388, allocations: 62.95 MB / 0.5165 GB, free: 37.21 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1088/0.4477, allocations: 90.32 MB / 0.6047 GB, free: 15.11 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001581/0.4479, allocations: 67.97 kB / 0.6047 GB, free: 15.04 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0376/0.4855, allocations: 13.11 MB / 0.6175 GB, free: 1.914 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4855, allocations: 0 / 0.6175 GB, free: 1.914 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.4855, allocations: 0 / 0.6175 GB, free: 1.914 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005697/0.4861, allocations: 464.9 kB / 0.618 GB, free: 1.402 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.4861, allocations: 8.031 kB / 0.618 GB, free: 1.395 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.864e-05/0.4862, allocations: 80.22 kB / 0.6181 GB, free: 1.316 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.984e-05/0.4863, allocations: 235.7 kB / 0.6183 GB, free: 1.047 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.774e-05/0.4864, allocations: 154.9 kB / 0.6184 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.516e-05/0.4864, allocations: 150.9 kB / 0.6186 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.855e-05/0.4865, allocations: 105.5 kB / 0.6187 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.4865, allocations: 75.47 kB / 0.6187 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.31e-05/0.4866, allocations: 158.5 kB / 0.6189 GB, free: 416 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.847e-05/0.4867, allocations: 158.6 kB / 0.619 GB, free: 256 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.056e-05/0.4867, allocations: 150.6 kB / 0.6192 GB, free: 104 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002877/0.487, allocations: 445.9 kB / 0.6196 GB, free: 15.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.862e-05/0.4871, allocations: 177 kB / 0.6198 GB, free: 15.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.116e-05/0.4872, allocations: 88.14 kB / 0.6199 GB, free: 15.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.4872, allocations: 75.28 kB / 0.6199 GB, free: 15.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.932e-05/0.4873, allocations: 135.5 kB / 0.6201 GB, free: 15.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.4873, allocations: 0 / 0.6201 GB, free: 15.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=0): time 7.784e-05/0.4873, allocations: 29.64 kB / 0.6201 GB, free: 15.09 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.436e-05/0.4874, allocations: 156.4 kB / 0.6203 GB, free: 14.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.613e-05/0.4875, allocations: 93.84 kB / 0.6203 GB, free: 14.81 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.4875, allocations: 29.7 kB / 0.6204 GB, free: 14.78 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.747e-05/0.4875, allocations: 80.14 kB / 0.6204 GB, free: 14.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.823e-06/0.4875, allocations: 0 / 0.6204 GB, free: 14.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.433e-06/0.4875, allocations: 0 / 0.6204 GB, free: 14.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.517e-05/0.4876, allocations: 314.8 kB / 0.6207 GB, free: 14.38 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.046e-06/0.4877, allocations: 4 kB / 0.6207 GB, free: 14.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.903e-05/0.4877, allocations: 0 / 0.6207 GB, free: 14.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.616e-05/0.4877, allocations: 79.28 kB / 0.6208 GB, free: 14.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.105e-05/0.4877, allocations: 79.31 kB / 0.6209 GB, free: 14.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.975e-05/0.4878, allocations: 29.7 kB / 0.6209 GB, free: 14.18 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.342e-05/0.4878, allocations: 79.28 kB / 0.621 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.801e-05/0.4879, allocations: 79.22 kB / 0.6211 GB, free: 14.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.508e-05/0.4879, allocations: 158.5 kB / 0.6212 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.826e-05/0.488, allocations: 83.27 kB / 0.6213 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.686e-05/0.488, allocations: 154.5 kB / 0.6215 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.722e-05/0.4881, allocations: 83.28 kB / 0.6215 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.4881, allocations: 83.22 kB / 0.6216 GB, free: 13.47 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.0001044/0.4883, allocations: 260.3 kB / 0.6219 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.9e-05/0.4883, allocations: 105 kB / 0.622 GB, free: 13.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.496e-05/0.4884, allocations: 116 kB / 0.6221 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.892e-05/0.4884, allocations: 184.2 kB / 0.6223 GB, free: 12.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-05/0.4885, allocations: 180.3 kB / 0.6224 GB, free: 12.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.307e-05/0.4886, allocations: 184.2 kB / 0.6226 GB, free: 12.42 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.4888, allocations: 397.2 kB / 0.623 GB, free: 11.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.742e-05/0.4888, allocations: 102.3 kB / 0.6231 GB, free: 11.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.543e-05/0.4889, allocations: 108.9 kB / 0.6232 GB, free: 11.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.104e-05/0.4889, allocations: 180.3 kB / 0.6234 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-05/0.489, allocations: 188.1 kB / 0.6235 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.604e-05/0.4891, allocations: 184.2 kB / 0.6237 GB, free: 11.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.378e-05/0.4891, allocations: 184.2 kB / 0.6239 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001362/0.4893, allocations: 307.8 kB / 0.6242 GB, free: 10.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.057e-05/0.4894, allocations: 186 kB / 0.6244 GB, free: 10.47 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.157e-05/0.4895, allocations: 180.2 kB / 0.6245 GB, free: 10.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.549e-05/0.4896, allocations: 105.4 kB / 0.6246 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.4896, allocations: 180.2 kB / 0.6248 GB, free: 9.996 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.073e-05/0.4897, allocations: 101 kB / 0.6249 GB, free: 9.891 MB / 442.7 MB Notification: Performance of sorting global known variables: time 2.749e-05/0.4897, allocations: 79.33 kB / 0.625 GB, free: 9.812 MB / 442.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4897, allocations: 0 / 0.625 GB, free: 9.812 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007589/0.4905, allocations: 175.7 kB / 0.6251 GB, free: 9.641 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * 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.001046/0.4915, allocations: 476 kB / 0.6256 GB, free: 9.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 4.428e-05/0.4916, allocations: 7.938 kB / 0.6256 GB, free: 9.172 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.4916, allocations: 0 / 0.6256 GB, free: 9.172 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.863e-06/0.4916, allocations: 0 / 0.6256 GB, free: 9.172 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.4919, allocations: 0.5185 MB / 0.6261 GB, free: 8.648 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000148/0.4921, allocations: 175.7 kB / 0.6263 GB, free: 8.441 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.4923, allocations: 0.6731 MB / 0.6269 GB, free: 7.742 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.567e-05/0.4924, allocations: 11.44 kB / 0.6269 GB, free: 7.734 MB / 442.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4924, allocations: 0 / 0.6269 GB, free: 7.734 MB / 442.7 MB Notification: Performance of Templates: time 0.005141/0.4975, allocations: 2.739 MB / 0.6296 GB, free: 4.996 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches