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.0007194/0.0007195, allocations: 95.73 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008908/0.0008908, allocations: 201.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2309/0.2309, allocations: 46.17 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003053/0.0003055, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1331, allocations: 63.56 MB / 483.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0006165/0.1337, allocations: 218.9 kB / 483.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003651/0.1374, allocations: 2.339 MB / 485.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.072e-06/0.1374, allocations: 0 / 485.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.538e-06/0.1374, allocations: 0 / 485.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.242e-06/0.1374, allocations: 0 / 485.7 MB, free: 1.484 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.002109/0.1396, allocations: 0.518 MB / 486.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.71e-05/0.1396, allocations: 4 kB / 486.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.296e-05/0.1396, allocations: 4 kB / 486.3 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.1398, allocations: 19.91 kB / 486.3 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.21e-05/0.1398, allocations: 11.94 kB / 486.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.288e-06/0.1399, allocations: 0 / 486.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009716/0.1408, allocations: 0.6125 MB / 486.9 MB, free: 324 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.365e-06/0.1409, allocations: 3.984 kB / 486.9 MB, free: 320 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.172e-05/0.1409, allocations: 25.7 kB / 486.9 MB, free: 288 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000675/0.1416, allocations: 439.5 kB / 487.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1416, allocations: 0 / 487.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1416, allocations: 0 / 487.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1416, allocations: 0 / 487.4 MB, free: 15.85 MB / 366.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.000422/0.142, allocations: 421.2 kB / 487.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.1421, allocations: 16.81 kB / 487.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.377e-05/0.1422, allocations: 106 kB / 487.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.021e-05/0.1422, allocations: 80.22 kB / 488 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.1424, allocations: 235.7 kB / 488.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.394e-05/0.1424, allocations: 150.9 kB / 488.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.374e-05/0.1425, allocations: 154.5 kB / 488.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.838e-05/0.1426, allocations: 105 kB / 488.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.633e-05/0.1426, allocations: 91.09 kB / 488.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.455e-05/0.1427, allocations: 150.6 kB / 488.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.745e-05/0.1427, allocations: 154.6 kB / 489 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.515e-05/0.1428, allocations: 150.6 kB / 489.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002762/0.143, allocations: 442 kB / 489.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.255e-05/0.1431, allocations: 173.1 kB / 489.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.568e-05/0.1432, allocations: 84.08 kB / 489.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.1432, allocations: 79.28 kB / 489.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.783e-05/0.1433, allocations: 131.5 kB / 490 MB, free: 12.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.122e-06/0.1433, allocations: 4 kB / 490 MB, free: 12.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.354e-05/0.1434, allocations: 29.69 kB / 490 MB, free: 12.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/0.1435, allocations: 156.4 kB / 490.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.646e-05/0.1435, allocations: 89.86 kB / 490.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.1435, allocations: 25.7 kB / 490.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.876e-05/0.1436, allocations: 84.14 kB / 490.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-06/0.1436, allocations: 0 / 490.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.444e-05/0.1436, allocations: 9.719 kB / 490.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1438, allocations: 314.8 kB / 490.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.44e-06/0.1438, allocations: 3.938 kB / 490.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.688e-05/0.1438, allocations: 4 kB / 490.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.146e-05/0.1438, allocations: 75.28 kB / 490.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-05/0.1439, allocations: 79.22 kB / 490.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.162e-05/0.1439, allocations: 33.64 kB / 490.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/0.144, allocations: 81.78 kB / 491 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.284e-05/0.144, allocations: 87.25 kB / 491.1 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.702e-05/0.1441, allocations: 158.7 kB / 491.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.96e-05/0.1441, allocations: 79.3 kB / 491.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.625e-05/0.1442, allocations: 158.5 kB / 491.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.922e-05/0.1443, allocations: 75.28 kB / 491.5 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.928e-05/0.1443, allocations: 83.22 kB / 491.6 MB, free: 11.32 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.0001394/0.1445, allocations: 260.4 kB / 491.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.1445, allocations: 112.9 kB / 492 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.157e-05/0.1446, allocations: 104.1 kB / 492.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-05/0.1447, allocations: 184.2 kB / 492.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.479e-05/0.1448, allocations: 180.3 kB / 492.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.388e-05/0.1449, allocations: 188.1 kB / 492.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002581/0.1451, allocations: 405.2 kB / 493 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.645e-05/0.1452, allocations: 101 kB / 493.1 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.737e-05/0.1452, allocations: 108.9 kB / 493.2 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-05/0.1453, allocations: 180.3 kB / 493.4 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-05/0.1454, allocations: 184.2 kB / 493.6 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.019e-05/0.1455, allocations: 184.3 kB / 493.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.322e-05/0.1455, allocations: 180.3 kB / 493.9 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.1457, allocations: 307.7 kB / 494.2 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.694e-05/0.1458, allocations: 186 kB / 494.4 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.095e-05/0.1459, allocations: 176.3 kB / 494.6 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.383e-05/0.146, allocations: 109 kB / 494.7 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.671e-05/0.146, allocations: 180.2 kB / 494.9 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/0.1461, allocations: 105 kB / 495 MB, free: 7.742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.247e-05/0.1461, allocations: 79.27 kB / 495 MB, free: 7.664 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1461, allocations: 0 / 495 MB, free: 7.664 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004654/0.1466, allocations: 132 kB / 495.2 MB, free: 7.535 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.001095/0.1477, allocations: 1.058 MB / 496.2 MB, free: 6.457 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.262e-05/0.1477, allocations: 0 / 496.2 MB, free: 6.457 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1477, allocations: 0 / 496.2 MB, free: 6.457 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.082e-06/0.1478, allocations: 0 / 496.2 MB, free: 6.457 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.1481, allocations: 0.5289 MB / 496.8 MB, free: 5.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003981/0.1485, allocations: 235.6 kB / 497 MB, free: 5.652 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.1487, allocations: 0.6692 MB / 497.7 MB, free: 4.957 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.742e-06/0.1488, allocations: 0 / 497.7 MB, free: 4.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.419e-05/0.1488, allocations: 11.44 kB / 497.7 MB, free: 4.949 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1488, allocations: 0 / 497.7 MB, free: 4.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01595/0.1647, allocations: 3.844 MB / 0.4898 GB, free: 1.203 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/0.165, allocations: 228.1 kB / 0.49 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.039, allocations: 3.938 kB / 0.49 GB, free: 0.9414 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