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.001388/0.001388, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001644/0.001644, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2401/0.2401, allocations: 46.11 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 77.19 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1263, allocations: 62.45 MB / 479.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.002426/0.1288, allocations: 0.5411 MB / 479.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003921/0.1327, allocations: 2.381 MB / 482.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.451e-06/0.1328, allocations: 4 kB / 482.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.278e-06/0.1328, allocations: 0 / 482.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.583e-06/0.1328, allocations: 0 / 482.3 MB, free: 2.711 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.002135/0.135, allocations: 0.5067 MB / 482.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.285e-05/0.135, allocations: 12 kB / 482.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.435e-05/0.1351, allocations: 7.875 kB / 482.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.1352, allocations: 15.97 kB / 482.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.668e-05/0.1353, allocations: 4 kB / 482.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-06/0.1353, allocations: 4 kB / 482.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009784/0.1362, allocations: 0.6164 MB / 483.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-06/0.1363, allocations: 0 / 483.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.678e-05/0.1363, allocations: 4 kB / 483.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005695/0.1369, allocations: 431.4 kB / 483.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1369, allocations: 0 / 483.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1369, allocations: 0 / 483.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.1369, allocations: 0 / 483.9 MB, free: 1.121 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.0003978/0.1373, allocations: 429.2 kB / 484.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.1373, allocations: 8.875 kB / 484.3 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.459e-05/0.1374, allocations: 114 kB / 484.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.355e-05/0.1375, allocations: 76.22 kB / 484.5 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.1376, allocations: 243.6 kB / 484.7 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.23e-05/0.1376, allocations: 150.9 kB / 484.9 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.494e-05/0.1377, allocations: 158.5 kB / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.062e-05/0.1378, allocations: 104.9 kB / 485.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.1378, allocations: 75.28 kB / 485.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.795e-05/0.1379, allocations: 154.6 kB / 485.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-05/0.1379, allocations: 150.6 kB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.485e-05/0.1379, allocations: 154.5 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002284/0.1382, allocations: 446 kB / 486.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.443e-05/0.1383, allocations: 177 kB / 486.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.975e-05/0.1383, allocations: 80.14 kB / 486.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.1383, allocations: 75.28 kB / 486.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.434e-05/0.1384, allocations: 143.5 kB / 486.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.31e-07/0.1384, allocations: 0 / 486.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.057e-05/0.1385, allocations: 29.7 kB / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.102e-05/0.1386, allocations: 156.3 kB / 486.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.153e-05/0.1386, allocations: 89.86 kB / 486.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.1386, allocations: 25.7 kB / 486.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.095e-05/0.1387, allocations: 80.14 kB / 486.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.783e-06/0.1387, allocations: 4 kB / 487 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/0.1387, allocations: 13.72 kB / 487 MB, free: 13.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1388, allocations: 310.8 kB / 487.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.683e-06/0.1389, allocations: 4 kB / 487.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.218e-05/0.1389, allocations: 7.922 kB / 487.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.721e-05/0.1389, allocations: 75.28 kB / 487.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.33e-05/0.139, allocations: 79.28 kB / 487.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.689e-05/0.139, allocations: 41.69 kB / 487.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.1391, allocations: 83.31 kB / 487.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.25e-05/0.1391, allocations: 79.22 kB / 487.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.414e-05/0.1392, allocations: 154.7 kB / 487.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.932e-05/0.1392, allocations: 83.23 kB / 487.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.802e-05/0.1393, allocations: 154.5 kB / 488 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.795e-05/0.1393, allocations: 79.28 kB / 488.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.1394, allocations: 83.22 kB / 488.2 MB, free: 12.57 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.0001165/0.1395, allocations: 260.4 kB / 488.4 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.244e-05/0.1396, allocations: 108.9 kB / 488.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.354e-05/0.1396, allocations: 108 kB / 488.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.845e-05/0.1397, allocations: 180.2 kB / 488.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-05/0.1397, allocations: 184.3 kB / 489 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.078e-05/0.1398, allocations: 184.2 kB / 489.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.14, allocations: 397.2 kB / 489.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.545e-05/0.1401, allocations: 112.9 kB / 489.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.05e-05/0.1401, allocations: 101 kB / 489.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001257/0.1402, allocations: 176.3 kB / 489.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.303e-05/0.1403, allocations: 184.2 kB / 490.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.593e-05/0.1404, allocations: 188.3 kB / 490.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.377e-05/0.1405, allocations: 180.2 kB / 490.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001976/0.1407, allocations: 307.7 kB / 490.8 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.1409, allocations: 186.1 kB / 491 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/0.141, allocations: 184.2 kB / 491.1 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.343e-05/0.1411, allocations: 108.9 kB / 491.3 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.023e-05/0.1412, allocations: 176.3 kB / 491.4 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.933e-05/0.1413, allocations: 104.9 kB / 491.5 MB, free: 8.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.235e-05/0.1413, allocations: 75.28 kB / 491.6 MB, free: 8.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1413, allocations: 4 kB / 491.6 MB, free: 8.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004866/0.1418, allocations: 140 kB / 491.7 MB, free: 8.781 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.001152/0.143, allocations: 1.059 MB / 492.8 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.092e-05/0.143, allocations: 0 / 492.8 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.143, allocations: 3.938 kB / 492.8 MB, free: 7.699 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.468e-06/0.143, allocations: 7.938 kB / 492.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/0.1434, allocations: 0.5185 MB / 493.3 MB, free: 7.168 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004292/0.1438, allocations: 235.6 kB / 493.6 MB, free: 6.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/0.1443, allocations: 0.6692 MB / 494.2 MB, free: 6.199 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.043e-06/0.1443, allocations: 0 / 494.2 MB, free: 6.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.187e-05/0.1443, allocations: 11.44 kB / 494.2 MB, free: 6.191 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1443, allocations: 0 / 494.2 MB, free: 6.191 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01651/0.1608, allocations: 3.925 MB / 498.2 MB, free: 2.332 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/0.1611, allocations: 227.1 kB / 498.4 MB, free: 2.082 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.924/2.085, allocations: 0 / 498.4 MB, free: 2.082 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