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.00152/0.001525, allocations: 115.8 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0018/0.0018, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2472/0.2472, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 75.44 kB / 417.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1491, allocations: 62.45 MB / 479.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001978/0.1512, allocations: 0.5293 MB / 480.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003879/0.1551, allocations: 2.292 MB / 482.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.442e-06/0.1551, allocations: 0 / 482.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.49e-06/0.1551, allocations: 0 / 482.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.104e-06/0.1552, allocations: 0 / 482.4 MB, free: 2.664 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.002638/0.1578, allocations: 0.5726 MB / 483 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.274e-05/0.1579, allocations: 11.92 kB / 483 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.485e-05/0.1579, allocations: 3.984 kB / 483 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.1581, allocations: 12 kB / 483 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.037e-05/0.1581, allocations: 7.984 kB / 483 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.631e-06/0.1581, allocations: 0 / 483 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001061/0.1592, allocations: 0.6163 MB / 483.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-06/0.1592, allocations: 4 kB / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.354e-05/0.1593, allocations: 4 kB / 483.7 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007646/0.16, allocations: 431.4 kB / 484.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.16, allocations: 0 / 484.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1601, allocations: 0 / 484.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1601, allocations: 4 kB / 484.1 MB, free: 1.008 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.0004958/0.1606, allocations: 425.2 kB / 484.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1606, allocations: 12.03 kB / 484.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.408e-05/0.1607, allocations: 110 kB / 484.6 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.635e-05/0.1608, allocations: 80.2 kB / 484.7 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.1609, allocations: 239.6 kB / 484.9 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.396e-05/0.161, allocations: 154.9 kB / 485.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.604e-05/0.161, allocations: 154.5 kB / 485.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.666e-05/0.1611, allocations: 105 kB / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/0.1611, allocations: 79.28 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.259e-05/0.1612, allocations: 150.6 kB / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.84e-05/0.1613, allocations: 150.6 kB / 485.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.489e-05/0.1613, allocations: 154.5 kB / 485.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002717/0.1616, allocations: 449.9 kB / 486.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.333e-05/0.1617, allocations: 173.1 kB / 486.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.186e-05/0.1617, allocations: 80.14 kB / 486.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.1618, allocations: 75.28 kB / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.88e-05/0.1618, allocations: 131.5 kB / 486.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.1619, allocations: 0 / 486.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 8.391e-05/0.1619, allocations: 37.64 kB / 486.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.253e-05/0.162, allocations: 160.4 kB / 486.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.39e-05/0.1621, allocations: 89.86 kB / 487 MB, free: 13.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.1621, allocations: 25.7 kB / 487 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.58e-05/0.1621, allocations: 84.14 kB / 487.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.914e-06/0.1622, allocations: 3.938 kB / 487.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.776e-05/0.1622, allocations: 17.7 kB / 487.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.1623, allocations: 310.8 kB / 487.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.919e-06/0.1623, allocations: 7.938 kB / 487.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.496e-05/0.1623, allocations: 0 / 487.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.97e-05/0.1624, allocations: 75.28 kB / 487.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.378e-05/0.1624, allocations: 79.28 kB / 487.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.71e-05/0.1625, allocations: 33.58 kB / 487.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.081e-05/0.1625, allocations: 81.94 kB / 487.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.205e-05/0.1626, allocations: 87.31 kB / 487.8 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.731e-05/0.1626, allocations: 158.6 kB / 488 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.436e-05/0.1627, allocations: 83.22 kB / 488 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.774e-05/0.1627, allocations: 150.6 kB / 488.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.883e-05/0.1628, allocations: 83.22 kB / 488.3 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.1628, allocations: 75.28 kB / 488.3 MB, free: 12.47 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.0001228/0.1629, allocations: 260.4 kB / 488.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.251e-05/0.1631, allocations: 116.9 kB / 488.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.412e-05/0.1631, allocations: 108.1 kB / 488.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.34e-05/0.1632, allocations: 180.3 kB / 489 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.918e-05/0.1632, allocations: 180.2 kB / 489.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-05/0.1633, allocations: 176.3 kB / 489.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.1635, allocations: 417.1 kB / 489.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.452e-05/0.1636, allocations: 101 kB / 489.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.881e-05/0.1636, allocations: 105 kB / 490 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.365e-05/0.1637, allocations: 180.2 kB / 490.1 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.209e-05/0.1637, allocations: 180.3 kB / 490.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.059e-05/0.1638, allocations: 184.2 kB / 490.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.027e-05/0.1639, allocations: 184.3 kB / 490.7 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001429/0.164, allocations: 307.7 kB / 491 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.086e-05/0.1641, allocations: 182.1 kB / 491.1 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-05/0.1642, allocations: 184.2 kB / 491.3 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.899e-05/0.1643, allocations: 109 kB / 491.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.34e-05/0.1644, allocations: 176.3 kB / 491.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-05/0.1644, allocations: 108.9 kB / 491.7 MB, free: 8.883 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.129e-05/0.1644, allocations: 75.28 kB / 491.8 MB, free: 8.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1645, allocations: 0 / 491.8 MB, free: 8.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005319/0.165, allocations: 132 kB / 491.9 MB, free: 8.68 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.001273/0.1663, allocations: 1.044 MB / 493 MB, free: 7.617 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.708e-05/0.1664, allocations: 15.94 kB / 493 MB, free: 7.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1664, allocations: 0 / 493 MB, free: 7.602 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.512e-06/0.1664, allocations: 0 / 493 MB, free: 7.602 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000342/0.1667, allocations: 455.7 kB / 493.4 MB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004714/0.1672, allocations: 241.8 kB / 493.7 MB, free: 6.875 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002487/0.1675, allocations: 0.669 MB / 494.3 MB, free: 6.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.566e-06/0.1675, allocations: 4 kB / 494.3 MB, free: 6.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.551e-05/0.1675, allocations: 7.438 kB / 494.3 MB, free: 6.172 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1675, allocations: 0 / 494.3 MB, free: 6.172 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.1868, allocations: 3.975 MB / 498.3 MB, free: 2.293 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003088/0.1871, allocations: 228.5 kB / 498.5 MB, free: 2.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.069/2.256, allocations: 0 / 498.5 MB, free: 2.035 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