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.001179/0.001179, allocations: 117.7 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.9 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.2152/0.2152, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 75.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3535, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.002047/0.3556, allocations: 494.2 kB / 0.531 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003347/0.3589, allocations: 2.275 MB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.524e-06/0.359, allocations: 3.938 kB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.811e-06/0.359, allocations: 0 / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.793e-06/0.359, allocations: 4 kB / 0.5332 GB, free: 11.24 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.002456/0.3615, allocations: 0.611 MB / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.83e-05/0.3615, allocations: 8.125 kB / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.869e-05/0.3616, allocations: 1.375 kB / 0.5338 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.3618, allocations: 20.16 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.637e-05/0.3618, allocations: 4.125 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.37e-06/0.3618, allocations: 0 / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001169/0.363, allocations: 0.663 MB / 0.5345 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-06/0.363, allocations: 3.938 kB / 0.5345 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.976e-05/0.363, allocations: 2.312 kB / 0.5345 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006205/0.3637, allocations: 437 kB / 0.5349 GB, free: 10.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3637, allocations: 0 / 0.5349 GB, free: 10.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3637, allocations: 0 / 0.5349 GB, free: 10.28 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.3637, allocations: 0 / 0.5349 GB, free: 10.28 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.0004122/0.3641, allocations: 428.9 kB / 0.5353 GB, free: 9.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.3642, allocations: 13.34 kB / 0.5353 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.249e-05/0.3642, allocations: 111.4 kB / 0.5354 GB, free: 9.719 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.331e-05/0.3643, allocations: 76.22 kB / 0.5355 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.3645, allocations: 236.8 kB / 0.5357 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.648e-05/0.3646, allocations: 154.9 kB / 0.5359 GB, free: 9.223 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/0.3646, allocations: 154.5 kB / 0.536 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.793e-05/0.3647, allocations: 106.3 kB / 0.5361 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.257e-05/0.3648, allocations: 75.28 kB / 0.5362 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.355e-05/0.3648, allocations: 155.8 kB / 0.5363 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.308e-05/0.3649, allocations: 154.5 kB / 0.5365 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.99e-05/0.3649, allocations: 156.1 kB / 0.5366 GB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004234/0.3654, allocations: 447.5 kB / 0.5371 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.717e-05/0.3655, allocations: 173.1 kB / 0.5372 GB, free: 7.766 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.387e-05/0.3655, allocations: 81.67 kB / 0.5373 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.178e-05/0.3655, allocations: 75.28 kB / 0.5374 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.08e-05/0.3656, allocations: 137 kB / 0.5375 GB, free: 7.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.3656, allocations: 4 kB / 0.5375 GB, free: 7.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.088e-05/0.3657, allocations: 27.27 kB / 0.5375 GB, free: 7.426 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.102e-05/0.3658, allocations: 160.4 kB / 0.5377 GB, free: 7.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.157e-05/0.3659, allocations: 91.39 kB / 0.5378 GB, free: 7.152 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.3659, allocations: 29.64 kB / 0.5378 GB, free: 7.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.165e-05/0.3659, allocations: 81.52 kB / 0.5379 GB, free: 7.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.703e-06/0.3659, allocations: 0 / 0.5379 GB, free: 7.035 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.292e-05/0.366, allocations: 13.19 kB / 0.5379 GB, free: 7.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.3661, allocations: 316.3 kB / 0.5382 GB, free: 6.703 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.779e-06/0.3661, allocations: 0 / 0.5382 GB, free: 6.703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.315e-05/0.3661, allocations: 1.25 kB / 0.5382 GB, free: 6.703 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.827e-05/0.3662, allocations: 76.62 kB / 0.5383 GB, free: 6.629 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.573e-05/0.3662, allocations: 75.28 kB / 0.5383 GB, free: 6.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.24e-05/0.3662, allocations: 44.19 kB / 0.5384 GB, free: 6.508 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/0.3663, allocations: 80.72 kB / 0.5385 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.846e-05/0.3663, allocations: 76.44 kB / 0.5385 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.914e-05/0.3664, allocations: 163.9 kB / 0.5387 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.586e-05/0.3664, allocations: 75.28 kB / 0.5388 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.593e-05/0.3665, allocations: 152 kB / 0.5389 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.603e-05/0.3666, allocations: 84.62 kB / 0.539 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.57e-05/0.3666, allocations: 76.59 kB / 0.5391 GB, free: 5.82 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.0001212/0.3667, allocations: 266.8 kB / 0.5393 GB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.703e-05/0.3668, allocations: 113.9 kB / 0.5394 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.291e-05/0.3669, allocations: 109 kB / 0.5395 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.744e-05/0.3669, allocations: 177.8 kB / 0.5397 GB, free: 5.145 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.657e-05/0.367, allocations: 181.7 kB / 0.5399 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.331e-05/0.3671, allocations: 180.2 kB / 0.54 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.3673, allocations: 418.5 kB / 0.5404 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.021e-05/0.3674, allocations: 102.3 kB / 0.5405 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.711e-05/0.3674, allocations: 106.4 kB / 0.5406 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001893/0.3676, allocations: 181.7 kB / 0.5408 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.42e-05/0.3677, allocations: 176.3 kB / 0.541 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001551/0.3678, allocations: 185.2 kB / 0.5412 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.506e-05/0.3679, allocations: 177.3 kB / 0.5413 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.3681, allocations: 312 kB / 0.5416 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.05e-05/0.3682, allocations: 179.1 kB / 0.5418 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.623e-05/0.3683, allocations: 181.4 kB / 0.542 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.439e-05/0.3684, allocations: 111.2 kB / 0.5421 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.128e-05/0.3684, allocations: 185.2 kB / 0.5422 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.3685, allocations: 102.1 kB / 0.5423 GB, free: 2.254 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.651e-05/0.3685, allocations: 79.22 kB / 0.5424 GB, free: 2.176 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3685, allocations: 0 / 0.5424 GB, free: 2.176 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006366/0.3692, allocations: 128.6 kB / 0.5425 GB, free: 2.148 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.001234/0.3704, allocations: 1.059 MB / 0.5436 GB, free: 1.227 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.472e-05/0.3705, allocations: 5.594 kB / 0.5436 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3705, allocations: 1.062 kB / 0.5436 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.272e-06/0.3705, allocations: 0 / 0.5436 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.3708, allocations: 463 kB / 0.544 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004369/0.3713, allocations: 242.2 kB / 0.5443 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.3715, allocations: 0.6701 MB / 0.5449 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.177e-06/0.3716, allocations: 0 / 0.5449 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.396e-05/0.3716, allocations: 12.56 kB / 0.5449 GB, free: 15.82 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3716, allocations: 1.031 kB / 0.5449 GB, free: 15.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.3985, allocations: 4.061 MB / 0.5489 GB, free: 13.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.916/8.315, allocations: 17.69 kB / 0.5489 GB, free: 13.61 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > 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