Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 104 kB / 17.32 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 193.3 kB / 18.25 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 241.9 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2183/0.2183, allocations: 44.18 MB / 336.2 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 64.7 kB / 408 MB, free: 27.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1248, allocations: 60.82 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001623/0.1265, allocations: 0.556 MB / 469.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002911/0.1294, allocations: 2.186 MB / 471.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.5e-06/0.1294, allocations: 0 / 471.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.246e-06/0.1295, allocations: 4 kB / 471.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.102e-06/0.1295, allocations: 0 / 471.6 MB, free: 11.9 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.001881/0.1314, allocations: 0.5636 MB / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.517e-05/0.1314, allocations: 7.984 kB / 472.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.021e-05/0.1314, allocations: 0 / 472.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.084e-05/0.1315, allocations: 11.98 kB / 472.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.273e-05/0.1316, allocations: 4 kB / 472.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.037e-06/0.1316, allocations: 11.88 kB / 472.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008259/0.1324, allocations: 0.6008 MB / 472.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.201e-06/0.1324, allocations: 0 / 472.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.61e-05/0.1324, allocations: 0 / 472.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005296/0.133, allocations: 431.4 kB / 473.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.133, allocations: 0 / 473.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.133, allocations: 0 / 473.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.089e-05/0.133, allocations: 0 / 473.2 MB, free: 10.28 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.0004031/0.1334, allocations: 429.2 kB / 473.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.1335, allocations: 8.031 kB / 473.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.631e-05/0.1335, allocations: 106 kB / 473.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.16e-05/0.1336, allocations: 80.16 kB / 473.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.1337, allocations: 239.7 kB / 474 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.727e-05/0.1338, allocations: 150.9 kB / 474.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.325e-05/0.1338, allocations: 154.5 kB / 474.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.371e-05/0.1339, allocations: 105 kB / 474.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.174e-05/0.134, allocations: 79.22 kB / 474.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.556e-05/0.134, allocations: 154.6 kB / 474.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.526e-05/0.1341, allocations: 150.6 kB / 474.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.271e-05/0.1342, allocations: 166.5 kB / 475 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002643/0.1344, allocations: 442 kB / 475.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.593e-05/0.1345, allocations: 173.1 kB / 475.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.133e-05/0.1346, allocations: 80.14 kB / 475.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.1346, allocations: 75.28 kB / 475.7 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.307e-05/0.1347, allocations: 139.5 kB / 475.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.1347, allocations: 0 / 475.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.693e-05/0.1348, allocations: 29.64 kB / 475.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.419e-05/0.1349, allocations: 156.4 kB / 476 MB, free: 7.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.693e-05/0.1349, allocations: 89.86 kB / 476.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/0.1349, allocations: 29.7 kB / 476.1 MB, free: 7.074 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.34e-05/0.135, allocations: 84.12 kB / 476.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.613e-06/0.135, allocations: 0 / 476.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.621e-05/0.135, allocations: 21.72 kB / 476.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1351, allocations: 310.8 kB / 476.6 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.219e-06/0.1351, allocations: 0 / 476.6 MB, free: 6.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.401e-05/0.1351, allocations: 4 kB / 476.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.725e-05/0.1352, allocations: 75.28 kB / 476.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.276e-05/0.1352, allocations: 75.28 kB / 476.7 MB, free: 6.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.994e-05/0.1353, allocations: 41.56 kB / 476.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.1353, allocations: 79.28 kB / 476.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.548e-05/0.1354, allocations: 83.31 kB / 476.9 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.987e-05/0.1354, allocations: 154.6 kB / 477.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.596e-05/0.1355, allocations: 87.23 kB / 477.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.23e-05/0.1355, allocations: 150.6 kB / 477.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.461e-05/0.1356, allocations: 87.27 kB / 477.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.362e-05/0.1356, allocations: 75.28 kB / 477.4 MB, free: 5.742 MB / 350.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.0001342/0.1358, allocations: 268.4 kB / 477.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.93e-05/0.1358, allocations: 108.9 kB / 477.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.735e-05/0.1359, allocations: 108.1 kB / 477.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.095e-05/0.136, allocations: 180.3 kB / 478.1 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.676e-05/0.136, allocations: 180.2 kB / 478.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.585e-05/0.1361, allocations: 184.2 kB / 478.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002204/0.1363, allocations: 409 kB / 478.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-05/0.1364, allocations: 101 kB / 478.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.916e-05/0.1364, allocations: 101 kB / 479 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.767e-05/0.1365, allocations: 192.2 kB / 479.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.407e-05/0.1366, allocations: 176.3 kB / 479.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-05/0.1366, allocations: 184.2 kB / 479.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.954e-05/0.1367, allocations: 176.3 kB / 479.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.1368, allocations: 311.7 kB / 480.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.385e-05/0.1369, allocations: 186.1 kB / 480.2 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.546e-05/0.137, allocations: 184.2 kB / 480.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.633e-05/0.1371, allocations: 105 kB / 480.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.903e-05/0.1372, allocations: 180.2 kB / 480.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-05/0.1372, allocations: 109 kB / 480.8 MB, free: 2.148 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.72e-05/0.1373, allocations: 75.28 kB / 480.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1373, allocations: 0 / 480.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004725/0.1378, allocations: 128 kB / 481 MB, free: 1.949 MB / 350.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.001111/0.1389, allocations: 1.046 MB / 482.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.216e-05/0.1389, allocations: 0 / 482.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1389, allocations: 0 / 482.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.172e-06/0.139, allocations: 0 / 482.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.1393, allocations: 463.6 kB / 482.5 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000421/0.1398, allocations: 245.8 kB / 482.7 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.1401, allocations: 0.669 MB / 483.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.412e-06/0.1401, allocations: 0 / 483.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.407e-05/0.1401, allocations: 7.438 kB / 483.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1401, allocations: 0 / 483.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/0.1559, allocations: 3.851 MB / 487.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.1562, allocations: 238.5 kB / 487.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.001/2.157, allocations: 3.625 kB / 487.5 MB, free: 11.43 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches