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.001159/0.001159, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2124/0.2124, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001433, allocations: 77.06 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1227, allocations: 62.44 MB / 480.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.00184/0.1246, allocations: 491.7 kB / 480.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003677/0.1283, allocations: 2.276 MB / 482.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.609e-06/0.1283, allocations: 0 / 482.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.867e-06/0.1284, allocations: 0 / 482.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.243e-06/0.1284, allocations: 4 kB / 482.9 MB, free: 2.398 MB / 350.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.0022/0.1306, allocations: 0.6152 MB / 483.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.588e-05/0.1307, allocations: 11.98 kB / 483.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.583e-05/0.1307, allocations: 7.984 kB / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.1308, allocations: 15.88 kB / 483.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.878e-05/0.1309, allocations: 7.984 kB / 483.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.891e-06/0.1309, allocations: 0 / 483.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009803/0.1319, allocations: 0.6233 MB / 484.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.482e-06/0.1319, allocations: 0 / 484.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.82e-05/0.1319, allocations: 0 / 484.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007004/0.1326, allocations: 435.3 kB / 484.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1326, allocations: 8 kB / 484.6 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1327, allocations: 0 / 484.6 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1327, allocations: 0 / 484.6 MB, free: 0.6875 MB / 350.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.0004594/0.1331, allocations: 417.2 kB / 485 MB, free: 232 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1332, allocations: 16.03 kB / 485 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.116e-05/0.1332, allocations: 110 kB / 485.1 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.821e-05/0.1333, allocations: 76.22 kB / 485.2 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.1335, allocations: 239.7 kB / 485.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.092e-05/0.1335, allocations: 150.9 kB / 485.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.146e-05/0.1336, allocations: 162.4 kB / 485.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.526e-05/0.1336, allocations: 112.9 kB / 485.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.1337, allocations: 75.28 kB / 485.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.998e-05/0.1337, allocations: 150.6 kB / 486.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-05/0.1338, allocations: 150.6 kB / 486.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.834e-05/0.1339, allocations: 150.6 kB / 486.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002761/0.1341, allocations: 450 kB / 486.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.605e-05/0.1342, allocations: 173 kB / 487 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.049e-05/0.1343, allocations: 84.12 kB / 487.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.334e-05/0.1343, allocations: 75.28 kB / 487.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.8e-05/0.1344, allocations: 139.5 kB / 487.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.223e-06/0.1344, allocations: 4 kB / 487.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.919e-05/0.1345, allocations: 29.64 kB / 487.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.112e-05/0.1346, allocations: 152.4 kB / 487.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.672e-05/0.1346, allocations: 89.86 kB / 487.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.1347, allocations: 25.7 kB / 487.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.849e-05/0.1347, allocations: 84.14 kB / 487.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-06/0.1347, allocations: 0 / 487.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.1347, allocations: 13.72 kB / 487.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.879e-05/0.1348, allocations: 318.8 kB / 488 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.951e-06/0.1349, allocations: 0 / 488 MB, free: 13.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.696e-05/0.1349, allocations: 0 / 488 MB, free: 13.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.251e-05/0.1349, allocations: 83.22 kB / 488 MB, free: 12.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/0.135, allocations: 79.28 kB / 488.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.778e-05/0.135, allocations: 29.64 kB / 488.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.306e-05/0.1351, allocations: 83.28 kB / 488.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.476e-05/0.1351, allocations: 79.22 kB / 488.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.842e-05/0.1352, allocations: 158.6 kB / 488.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.646e-05/0.1352, allocations: 83.2 kB / 488.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.864e-05/0.1353, allocations: 154.6 kB / 488.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.317e-05/0.1353, allocations: 75.28 kB / 488.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.1354, allocations: 79.22 kB / 488.9 MB, free: 12.16 MB / 366.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.000111/0.1355, allocations: 268.4 kB / 489.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.61e-05/0.1355, allocations: 109 kB / 489.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/0.1356, allocations: 116 kB / 489.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.832e-05/0.1357, allocations: 176.3 kB / 489.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.977e-05/0.1357, allocations: 180.2 kB / 489.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.357e-05/0.1358, allocations: 180.3 kB / 489.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.136, allocations: 409.2 kB / 490.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.639e-05/0.136, allocations: 104.9 kB / 490.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.413e-05/0.1361, allocations: 105 kB / 490.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.026e-05/0.1361, allocations: 180.2 kB / 490.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-05/0.1362, allocations: 180.3 kB / 490.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.024e-05/0.1363, allocations: 188.2 kB / 491 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.615e-05/0.1363, allocations: 184.2 kB / 491.2 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001197/0.1365, allocations: 303.7 kB / 491.5 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.609e-05/0.1365, allocations: 182.1 kB / 491.7 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.471e-05/0.1366, allocations: 184.2 kB / 491.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.599e-05/0.1367, allocations: 112.9 kB / 491.9 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.489e-05/0.1367, allocations: 180.3 kB / 492.1 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.1368, allocations: 104.9 kB / 492.2 MB, free: 8.566 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.418e-05/0.1368, allocations: 75.28 kB / 492.3 MB, free: 8.492 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1368, allocations: 0 / 492.3 MB, free: 8.492 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000498/0.1373, allocations: 136 kB / 492.4 MB, free: 8.359 MB / 366.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.00101/0.1383, allocations: 1.047 MB / 493.5 MB, free: 7.293 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.328e-05/0.1384, allocations: 11.95 kB / 493.5 MB, free: 7.281 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1384, allocations: 0 / 493.5 MB, free: 7.281 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.303e-06/0.1384, allocations: 0 / 493.5 MB, free: 7.281 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.1387, allocations: 455.7 kB / 493.9 MB, free: 6.832 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004119/0.1391, allocations: 241.8 kB / 494.2 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.1394, allocations: 0.6728 MB / 494.8 MB, free: 5.855 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.713e-06/0.1394, allocations: 0 / 494.8 MB, free: 5.855 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.31e-05/0.1394, allocations: 11.44 kB / 494.8 MB, free: 5.848 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1394, allocations: 0 / 494.8 MB, free: 5.848 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02229/0.1617, allocations: 4.033 MB / 498.9 MB, free: 1.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.423/7.585, allocations: 3.406 kB / 498.9 MB, free: 1.863 MB / 366.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