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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001329, allocations: 120.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.215/0.215, allocations: 46.91 MB / 357.7 MB, free: 10.18 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 79.86 kB / 0.4916 GB, free: 7.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1206, allocations: 66.04 MB / 0.5561 GB, free: 5.551 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001487/0.1221, allocations: 494.2 kB / 0.5566 GB, free: 5.062 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003266/0.1254, allocations: 2.31 MB / 0.5589 GB, free: 2.734 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.247e-06/0.1254, allocations: 0 / 0.5589 GB, free: 2.734 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.898e-06/0.1254, allocations: 4 kB / 0.5589 GB, free: 2.73 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 9.72e-07/0.1254, allocations: 0 / 0.5589 GB, free: 2.73 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:8:5-88: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:90:5-160: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:162:5-239: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:241:5-319: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.002026/0.1274, allocations: 0.6286 MB / 0.5595 GB, free: 2.105 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 3.648e-05/0.1274, allocations: 8 kB / 0.5595 GB, free: 2.098 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.51e-05/0.1275, allocations: 0 / 0.5595 GB, free: 2.098 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.1276, allocations: 15.92 kB / 0.5595 GB, free: 2.082 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.27e-05/0.1276, allocations: 7.984 kB / 0.5595 GB, free: 2.074 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.048e-06/0.1276, allocations: 0 / 0.5595 GB, free: 2.074 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001013/0.1286, allocations: 0.6711 MB / 0.5602 GB, free: 1.402 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.811e-06/0.1286, allocations: 0 / 0.5602 GB, free: 1.402 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.076e-05/0.1286, allocations: 8 kB / 0.5602 GB, free: 1.395 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005904/0.1292, allocations: 447 kB / 0.5606 GB, free: 0.957 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1292, allocations: 0 / 0.5606 GB, free: 0.957 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1292, allocations: 0 / 0.5606 GB, free: 0.957 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.1292, allocations: 0 / 0.5606 GB, free: 0.957 MB / 414.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.0004396/0.1297, allocations: 428.5 kB / 0.561 GB, free: 496 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.1297, allocations: 12.03 kB / 0.561 GB, free: 484 kB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.451e-05/0.1298, allocations: 75.47 kB / 0.5611 GB, free: 408 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.272e-05/0.1298, allocations: 114 kB / 0.5612 GB, free: 284 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.191e-05/0.1299, allocations: 76.22 kB / 0.5613 GB, free: 208 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.13, allocations: 243.6 kB / 0.5615 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.914e-05/0.1301, allocations: 162.6 kB / 0.5617 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.739e-05/0.1302, allocations: 154.6 kB / 0.5618 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.335e-05/0.1302, allocations: 109 kB / 0.5619 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.229e-05/0.1303, allocations: 75.28 kB / 0.562 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.668e-05/0.1304, allocations: 154.6 kB / 0.5621 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.701e-05/0.1304, allocations: 150.6 kB / 0.5623 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.129e-05/0.1305, allocations: 154.6 kB / 0.5624 GB, free: 14.97 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003096/0.1308, allocations: 445.9 kB / 0.5628 GB, free: 14.49 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.739e-05/0.1309, allocations: 177 kB / 0.563 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.299e-05/0.1309, allocations: 80.14 kB / 0.5631 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.131, allocations: 75.28 kB / 0.5632 GB, free: 14.15 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.022e-05/0.131, allocations: 143.5 kB / 0.5633 GB, free: 13.99 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 8.61e-07/0.131, allocations: 0 / 0.5633 GB, free: 13.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 7.259e-05/0.1311, allocations: 29.64 kB / 0.5633 GB, free: 13.96 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/0.1312, allocations: 156.4 kB / 0.5635 GB, free: 13.79 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.857e-05/0.1312, allocations: 89.86 kB / 0.5636 GB, free: 13.69 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.1313, allocations: 25.7 kB / 0.5636 GB, free: 13.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.133e-05/0.1313, allocations: 84.12 kB / 0.5637 GB, free: 13.57 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.453e-06/0.1313, allocations: 4 kB / 0.5637 GB, free: 13.57 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.1313, allocations: 13.72 kB / 0.5637 GB, free: 13.55 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1315, allocations: 310.8 kB / 0.564 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.338e-06/0.1315, allocations: 4 kB / 0.564 GB, free: 13.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.229e-05/0.1315, allocations: 3.984 kB / 0.564 GB, free: 13.23 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.177e-05/0.1315, allocations: 75.28 kB / 0.5641 GB, free: 13.15 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-05/0.1316, allocations: 75.28 kB / 0.5641 GB, free: 13.08 MB / 430.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.369e-05/0.1316, allocations: 41.58 kB / 0.5642 GB, free: 13.03 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.1317, allocations: 83.31 kB / 0.5643 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/0.1317, allocations: 75.28 kB / 0.5643 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.624e-05/0.1318, allocations: 154.6 kB / 0.5645 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.967e-05/0.1318, allocations: 79.22 kB / 0.5645 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.704e-05/0.1319, allocations: 154.5 kB / 0.5647 GB, free: 12.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.981e-05/0.1319, allocations: 87.2 kB / 0.5648 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.132, allocations: 79.28 kB / 0.5649 GB, free: 12.33 MB / 430.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.0001406/0.1321, allocations: 264.3 kB / 0.5651 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.495e-05/0.1322, allocations: 105 kB / 0.5652 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.009e-05/0.1322, allocations: 111.8 kB / 0.5653 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.533e-05/0.1323, allocations: 184.3 kB / 0.5655 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.564e-05/0.1324, allocations: 188.2 kB / 0.5657 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-05/0.1325, allocations: 176.3 kB / 0.5658 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/0.1327, allocations: 401.2 kB / 0.5662 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.442e-05/0.1328, allocations: 108.9 kB / 0.5663 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.942e-05/0.1328, allocations: 105 kB / 0.5664 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.33e-05/0.1329, allocations: 188.1 kB / 0.5666 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.768e-05/0.133, allocations: 180.3 kB / 0.5668 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.779e-05/0.1331, allocations: 184.2 kB / 0.5669 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.506e-05/0.1331, allocations: 184.2 kB / 0.5671 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/0.1333, allocations: 307.7 kB / 0.5674 GB, free: 9.531 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.598e-05/0.1334, allocations: 186.1 kB / 0.5676 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.837e-05/0.1335, allocations: 180.2 kB / 0.5678 GB, free: 9.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.039e-05/0.1335, allocations: 109 kB / 0.5679 GB, free: 9.027 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.465e-05/0.1336, allocations: 176.3 kB / 0.568 GB, free: 8.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.219e-05/0.1337, allocations: 104.9 kB / 0.5681 GB, free: 8.738 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.979e-05/0.1337, allocations: 75.28 kB / 0.5682 GB, free: 8.664 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1337, allocations: 8 kB / 0.5682 GB, free: 8.656 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005181/0.1342, allocations: 139.6 kB / 0.5684 GB, free: 8.52 MB / 430.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.001167/0.1354, allocations: 1.04 MB / 0.5694 GB, free: 7.453 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 4.95e-05/0.1354, allocations: 7.938 kB / 0.5694 GB, free: 7.445 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.1354, allocations: 0 / 0.5694 GB, free: 7.445 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.001e-06/0.1354, allocations: 0 / 0.5694 GB, free: 7.445 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.1358, allocations: 461.5 kB / 0.5698 GB, free: 6.992 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004433/0.1363, allocations: 253.7 kB / 0.5701 GB, free: 6.703 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.1366, allocations: 0.669 MB / 0.5707 GB, free: 6.008 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.002e-06/0.1366, allocations: 0 / 0.5707 GB, free: 6.008 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.374e-05/0.1366, allocations: 11.38 kB / 0.5707 GB, free: 5.996 MB / 430.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1366, allocations: 0 / 0.5707 GB, free: 5.996 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0206/0.1572, allocations: 4.21 MB / 0.5748 GB, free: 1.863 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.911/8.068, allocations: 9.906 kB / 0.5748 GB, free: 1.855 MB / 430.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.833595196017995]