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: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001515/0.001515, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001944/0.001944, allocations: 202 kB / 18.73 MB, free: 4.312 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 / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2552/0.2552, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 75.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3691, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001458/0.3706, allocations: 495.4 kB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003236/0.3738, allocations: 2.271 MB / 0.5332 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.426e-06/0.3739, allocations: 5 kB / 0.5332 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.518e-06/0.3739, allocations: 3.938 kB / 0.5332 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.583e-06/0.3739, allocations: 0 / 0.5332 GB, free: 11.23 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.002216/0.3761, allocations: 0.6184 MB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.114e-05/0.3762, allocations: 3.75 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.902e-05/0.3762, allocations: 1.812 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.3764, allocations: 19.7 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.594e-05/0.3764, allocations: 8.016 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-06/0.3764, allocations: 4 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001033/0.3775, allocations: 0.6587 MB / 0.5345 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.103e-06/0.3775, allocations: 0 / 0.5345 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.878e-05/0.3775, allocations: 2.75 kB / 0.5345 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005864/0.3781, allocations: 434.9 kB / 0.5349 GB, free: 10.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3781, allocations: 0 / 0.5349 GB, free: 10.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3781, allocations: 0.9375 kB / 0.5349 GB, free: 10.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.3781, allocations: 0 / 0.5349 GB, free: 10.27 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.0004041/0.3785, allocations: 434.6 kB / 0.5353 GB, free: 9.824 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.3786, allocations: 14.11 kB / 0.5353 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.479e-05/0.3787, allocations: 115.2 kB / 0.5354 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.009e-05/0.3787, allocations: 77.19 kB / 0.5355 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.3788, allocations: 235.7 kB / 0.5357 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.105e-05/0.3789, allocations: 150.9 kB / 0.5359 GB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.492e-05/0.3789, allocations: 159.6 kB / 0.536 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.923e-05/0.379, allocations: 102.1 kB / 0.5361 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.85e-05/0.3791, allocations: 75.28 kB / 0.5362 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.361e-05/0.3791, allocations: 151.7 kB / 0.5363 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.171e-05/0.3792, allocations: 150.6 kB / 0.5365 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.037e-05/0.3792, allocations: 155.6 kB / 0.5366 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002736/0.3795, allocations: 451.1 kB / 0.5371 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.922e-05/0.3796, allocations: 174.6 kB / 0.5372 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.611e-05/0.3797, allocations: 80.14 kB / 0.5373 GB, free: 7.672 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.585e-05/0.3797, allocations: 75.28 kB / 0.5374 GB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.1e-05/0.3798, allocations: 144.8 kB / 0.5375 GB, free: 7.441 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.032e-06/0.3798, allocations: 1.312 kB / 0.5375 GB, free: 7.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.494e-05/0.3799, allocations: 26.95 kB / 0.5376 GB, free: 7.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.906e-05/0.3799, allocations: 152.4 kB / 0.5377 GB, free: 7.242 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.883e-05/0.38, allocations: 90.98 kB / 0.5378 GB, free: 7.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.38, allocations: 25.7 kB / 0.5378 GB, free: 7.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.189e-05/0.38, allocations: 85.08 kB / 0.5379 GB, free: 7.027 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.613e-06/0.3801, allocations: 9.031 kB / 0.5379 GB, free: 7.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.721e-05/0.3801, allocations: 16.98 kB / 0.5379 GB, free: 7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.3802, allocations: 311.9 kB / 0.5382 GB, free: 6.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.049e-06/0.3802, allocations: 0 / 0.5382 GB, free: 6.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.458e-05/0.3802, allocations: 2.312 kB / 0.5382 GB, free: 6.688 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.049e-05/0.3803, allocations: 75.28 kB / 0.5383 GB, free: 6.613 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.518e-05/0.3803, allocations: 76.38 kB / 0.5384 GB, free: 6.539 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.023e-05/0.3804, allocations: 43.83 kB / 0.5384 GB, free: 6.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.622e-05/0.3805, allocations: 85.16 kB / 0.5385 GB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.928e-05/0.3805, allocations: 79.27 kB / 0.5386 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001506/0.3807, allocations: 155.6 kB / 0.5387 GB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.856e-05/0.3807, allocations: 76.31 kB / 0.5388 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-05/0.3808, allocations: 151.7 kB / 0.5389 GB, free: 5.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.3809, allocations: 80.41 kB / 0.539 GB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.3809, allocations: 80.31 kB / 0.5391 GB, free: 5.805 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.0002663/0.3812, allocations: 263.9 kB / 0.5393 GB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.3814, allocations: 117.8 kB / 0.5394 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.541e-05/0.3814, allocations: 109.1 kB / 0.5395 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001875/0.3816, allocations: 181.3 kB / 0.5397 GB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.1e-05/0.3817, allocations: 181.4 kB / 0.5399 GB, free: 4.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.747e-05/0.3818, allocations: 181.4 kB / 0.5401 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002199/0.382, allocations: 410.3 kB / 0.5405 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.357e-05/0.382, allocations: 102 kB / 0.5406 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.426e-05/0.3821, allocations: 106.3 kB / 0.5407 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.294e-05/0.3821, allocations: 176.3 kB / 0.5408 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.439e-05/0.3822, allocations: 186.3 kB / 0.541 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.46e-05/0.3823, allocations: 188.2 kB / 0.5412 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.363e-05/0.3823, allocations: 177.5 kB / 0.5413 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003335/0.3827, allocations: 304.3 kB / 0.5416 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.553e-05/0.3828, allocations: 191.3 kB / 0.5418 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.557e-05/0.3828, allocations: 181.3 kB / 0.542 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.359e-05/0.3829, allocations: 103.4 kB / 0.5421 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.252e-05/0.383, allocations: 181.5 kB / 0.5423 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.934e-05/0.3831, allocations: 101 kB / 0.5424 GB, free: 2.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.321e-05/0.3831, allocations: 76.28 kB / 0.5424 GB, free: 2.168 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3831, allocations: 3.938 kB / 0.5424 GB, free: 2.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006278/0.3837, allocations: 144.7 kB / 0.5426 GB, free: 2.121 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.001158/0.3849, allocations: 1.049 MB / 0.5436 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.033e-05/0.385, allocations: 2.625 kB / 0.5436 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.385, allocations: 0 / 0.5436 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.463e-06/0.385, allocations: 0 / 0.5436 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.3853, allocations: 465.9 kB / 0.544 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003986/0.3857, allocations: 236.7 kB / 0.5443 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.386, allocations: 0.669 MB / 0.5449 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.533e-06/0.386, allocations: 5.062 kB / 0.5449 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.435e-05/0.386, allocations: 8.5 kB / 0.5449 GB, free: 15.81 MB / 414.1 MB Notification: Performance of SimCode: time 2e-07/0.386, allocations: 0 / 0.5449 GB, free: 15.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02442/0.4104, allocations: 4.066 MB / 0.5489 GB, free: 13.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.537/7.948, allocations: 11.06 kB / 0.5489 GB, free: 13.59 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.csv","/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