Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001704/0.001704, allocations: 113 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001278/0.001278, allocations: 212.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2134/0.2134, allocations: 46.09 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 71.88 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2996, allocations: 62.44 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001365/0.301, allocations: 497.7 kB / 0.5321 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002897/0.304, allocations: 2.274 MB / 0.5343 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.552e-06/0.304, allocations: 4 kB / 0.5343 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.226e-06/0.304, allocations: 3.938 kB / 0.5343 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.428e-06/0.304, allocations: 0 / 0.5343 GB, free: 11.44 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:8:5-85:27:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.quadratureLobatto1' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:87:5-157:27:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.quadratureLobatto2' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:159:5-233:33:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.solveNonlinearEquations1' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:235:5-313:33:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.solveNonlinearEquations2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002036/0.3061, allocations: 0.6153 MB / 0.5349 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.195e-05/0.3061, allocations: 12.64 kB / 0.5349 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.672e-05/0.3062, allocations: 1.062 kB / 0.535 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001193/0.3063, allocations: 16.33 kB / 0.535 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.338e-05/0.3063, allocations: 8.234 kB / 0.535 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-06/0.3063, allocations: 4 kB / 0.535 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001024/0.3074, allocations: 0.6551 MB / 0.5356 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.54e-06/0.3074, allocations: 0.9688 kB / 0.5356 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.952e-05/0.3074, allocations: 6.047 kB / 0.5356 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005866/0.308, allocations: 432.2 kB / 0.536 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.308, allocations: 1.219 kB / 0.536 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.308, allocations: 0 / 0.536 GB, free: 10.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.157e-06/0.308, allocations: 0 / 0.536 GB, free: 10.48 MB / 398.1 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.0003855/0.3084, allocations: 431.6 kB / 0.5364 GB, free: 10.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.3085, allocations: 10.16 kB / 0.5365 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.673e-05/0.3085, allocations: 77.22 kB / 0.5365 GB, free: 9.961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.3086, allocations: 239.6 kB / 0.5368 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.242e-05/0.3087, allocations: 150.9 kB / 0.5369 GB, free: 9.539 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.3087, allocations: 159.8 kB / 0.5371 GB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.393e-05/0.3088, allocations: 106.2 kB / 0.5372 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.3088, allocations: 75.28 kB / 0.5372 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.815e-05/0.3089, allocations: 151.6 kB / 0.5374 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-05/0.3089, allocations: 150.6 kB / 0.5375 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.361e-05/0.309, allocations: 159.7 kB / 0.5377 GB, free: 8.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000235/0.3092, allocations: 447.1 kB / 0.5381 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.123e-05/0.3093, allocations: 170.3 kB / 0.5383 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.214e-05/0.3093, allocations: 84.08 kB / 0.5383 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.3094, allocations: 76.38 kB / 0.5384 GB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.33e-05/0.3094, allocations: 136.7 kB / 0.5385 GB, free: 7.777 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.142e-06/0.3094, allocations: 0 / 0.5385 GB, free: 7.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.252e-05/0.3095, allocations: 30.8 kB / 0.5386 GB, free: 7.742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.3096, allocations: 153.5 kB / 0.5387 GB, free: 7.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.609e-05/0.3096, allocations: 97.84 kB / 0.5388 GB, free: 7.469 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.3096, allocations: 26.92 kB / 0.5388 GB, free: 7.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.978e-05/0.3097, allocations: 81.3 kB / 0.5389 GB, free: 7.355 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-06/0.3097, allocations: 3.938 kB / 0.5389 GB, free: 7.352 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.3097, allocations: 17.22 kB / 0.5389 GB, free: 7.332 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.133e-05/0.3098, allocations: 312.2 kB / 0.5392 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.208e-06/0.3098, allocations: 0 / 0.5392 GB, free: 7.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.368e-05/0.3098, allocations: 2.125 kB / 0.5392 GB, free: 7.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.414e-05/0.3099, allocations: 75.28 kB / 0.5393 GB, free: 6.945 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-05/0.3099, allocations: 80.41 kB / 0.5394 GB, free: 6.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.66e-05/0.31, allocations: 43.88 kB / 0.5394 GB, free: 6.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.743e-05/0.31, allocations: 83.28 kB / 0.5395 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/0.31, allocations: 80.44 kB / 0.5396 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.548e-05/0.3101, allocations: 150.6 kB / 0.5397 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.436e-05/0.3101, allocations: 84.25 kB / 0.5398 GB, free: 6.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.392e-05/0.3102, allocations: 151.6 kB / 0.54 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.04e-05/0.3103, allocations: 81.41 kB / 0.54 GB, free: 6.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.3103, allocations: 76.38 kB / 0.5401 GB, free: 6.137 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.3104, allocations: 270.5 kB / 0.5404 GB, free: 5.863 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.703e-05/0.3104, allocations: 110 kB / 0.5405 GB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.879e-05/0.3105, allocations: 113 kB / 0.5406 GB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-05/0.3105, allocations: 181.5 kB / 0.5407 GB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-05/0.3106, allocations: 181.4 kB / 0.5409 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.054e-05/0.3107, allocations: 181.5 kB / 0.5411 GB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/0.3109, allocations: 406.3 kB / 0.5415 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.1e-05/0.3109, allocations: 110 kB / 0.5416 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.815e-05/0.3109, allocations: 102 kB / 0.5417 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.281e-05/0.311, allocations: 185.3 kB / 0.5419 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-05/0.311, allocations: 181.4 kB / 0.542 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.037e-05/0.3111, allocations: 185.3 kB / 0.5422 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.535e-05/0.3112, allocations: 176.3 kB / 0.5424 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001157/0.3113, allocations: 308.3 kB / 0.5427 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.966e-05/0.3113, allocations: 182.8 kB / 0.5428 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.997e-05/0.3114, allocations: 186.3 kB / 0.543 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.325e-05/0.3115, allocations: 106.1 kB / 0.5431 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.338e-05/0.3115, allocations: 177.4 kB / 0.5433 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.3116, allocations: 110 kB / 0.5434 GB, free: 2.562 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.475e-05/0.3116, allocations: 76.41 kB / 0.5435 GB, free: 2.488 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.3116, allocations: 0 / 0.5435 GB, free: 2.488 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000514/0.3121, allocations: 132.3 kB / 0.5436 GB, free: 2.457 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008238/0.313, allocations: 422.9 kB / 0.544 GB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 4.636e-05/0.313, allocations: 1.062 kB / 0.544 GB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.313, allocations: 4 kB / 0.544 GB, free: 2.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.242e-06/0.313, allocations: 1.375 kB / 0.544 GB, free: 2.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.3134, allocations: 467.2 kB / 0.5445 GB, free: 1.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001299/0.3135, allocations: 174.1 kB / 0.5446 GB, free: 1.531 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.3137, allocations: 0.669 MB / 0.5453 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.271e-05/0.3137, allocations: 9.594 kB / 0.5453 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3137, allocations: 4 kB / 0.5453 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of Templates: time 0.004982/0.3187, allocations: 2.813 MB / 0.548 GB, free: 15.38 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches