Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001552/0.001552, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001797/0.001797, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2241/0.2241, allocations: 46.11 MB / 344.2 MB, free: 11.6 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002328/0.002328, allocations: 80.77 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1178, allocations: 62.45 MB / 480.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001683/0.1196, allocations: 495.8 kB / 480.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00335/0.1229, allocations: 2.283 MB / 483 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.31e-06/0.123, allocations: 0 / 483 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.567e-06/0.123, allocations: 0 / 483 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.082e-06/0.123, allocations: 0 / 483 MB, free: 2.387 MB / 350.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.002151/0.1252, allocations: 0.6299 MB / 483.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.54e-05/0.1252, allocations: 15.98 kB / 483.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.86e-05/0.1252, allocations: 0 / 483.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.1254, allocations: 15.92 kB / 483.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.438e-05/0.1254, allocations: 7.984 kB / 483.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.891e-06/0.1254, allocations: 4 kB / 483.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.1264, allocations: 0.6203 MB / 484.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.791e-06/0.1265, allocations: 0 / 484.3 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.598e-05/0.1265, allocations: 7.938 kB / 484.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006095/0.1271, allocations: 443.4 kB / 484.7 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.1271, allocations: 0 / 484.7 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1271, allocations: 0 / 484.7 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1271, allocations: 0 / 484.7 MB, free: 0.6562 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.0004373/0.1276, allocations: 433.2 kB / 485.1 MB, free: 184 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1276, allocations: 8.031 kB / 485.1 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.228e-05/0.1277, allocations: 110 kB / 485.2 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.927e-05/0.1278, allocations: 76.22 kB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.1279, allocations: 251.6 kB / 485.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.128, allocations: 150.9 kB / 485.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.946e-05/0.1281, allocations: 154.5 kB / 485.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.073e-05/0.1281, allocations: 105 kB / 486 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.617e-05/0.1282, allocations: 79.28 kB / 486 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.802e-05/0.1283, allocations: 150.6 kB / 486.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.604e-05/0.1284, allocations: 158.5 kB / 486.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.86e-05/0.1285, allocations: 154.5 kB / 486.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002981/0.1288, allocations: 442 kB / 486.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.404e-05/0.1289, allocations: 173.1 kB / 487.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.16e-05/0.1289, allocations: 84.14 kB / 487.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/0.1289, allocations: 75.28 kB / 487.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.626e-05/0.129, allocations: 131.5 kB / 487.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.01e-07/0.129, allocations: 0 / 487.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.984e-05/0.1291, allocations: 37.64 kB / 487.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.165e-05/0.1292, allocations: 156.4 kB / 487.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.827e-05/0.1293, allocations: 93.86 kB / 487.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.1293, allocations: 25.7 kB / 487.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.982e-05/0.1293, allocations: 80.14 kB / 487.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.122e-06/0.1293, allocations: 0 / 487.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.1294, allocations: 13.72 kB / 487.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1295, allocations: 318.8 kB / 488.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.141e-06/0.1295, allocations: 4 kB / 488.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.061e-05/0.1296, allocations: 0 / 488.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.861e-05/0.1296, allocations: 79.31 kB / 488.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-05/0.1296, allocations: 75.28 kB / 488.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.468e-05/0.1297, allocations: 41.56 kB / 488.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.974e-05/0.1298, allocations: 79.28 kB / 488.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-05/0.1298, allocations: 83.28 kB / 488.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.111e-05/0.1299, allocations: 150.6 kB / 488.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.509e-05/0.13, allocations: 79.22 kB / 488.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.015e-05/0.13, allocations: 154.6 kB / 488.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.114e-05/0.1301, allocations: 83.22 kB / 488.9 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.322e-05/0.1302, allocations: 79.22 kB / 489 MB, free: 12.11 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.0001349/0.1303, allocations: 268.4 kB / 489.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.096e-05/0.1304, allocations: 112.9 kB / 489.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.309e-05/0.1304, allocations: 104.1 kB / 489.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.106e-05/0.1305, allocations: 180.3 kB / 489.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-05/0.1306, allocations: 184.2 kB / 489.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.918e-05/0.1307, allocations: 180.2 kB / 490 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.131, allocations: 405.1 kB / 490.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-05/0.131, allocations: 105 kB / 490.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.687e-05/0.1311, allocations: 105 kB / 490.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.463e-05/0.1312, allocations: 184.2 kB / 490.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.133e-05/0.1313, allocations: 176.3 kB / 490.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.16e-05/0.1314, allocations: 184.2 kB / 491.1 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.331e-05/0.1315, allocations: 180.3 kB / 491.3 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001763/0.1316, allocations: 311.7 kB / 491.6 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.373e-05/0.1317, allocations: 178.1 kB / 491.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.1318, allocations: 188.2 kB / 492 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.87e-05/0.1319, allocations: 105 kB / 492.1 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.304e-05/0.132, allocations: 176.3 kB / 492.2 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.191e-05/0.1321, allocations: 116.9 kB / 492.3 MB, free: 8.523 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.443e-05/0.1321, allocations: 75.28 kB / 492.4 MB, free: 8.449 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1322, allocations: 0 / 492.4 MB, free: 8.449 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005891/0.1327, allocations: 128 kB / 492.5 MB, free: 8.324 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.001318/0.1341, allocations: 1.062 MB / 493.6 MB, free: 7.242 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.375e-05/0.1341, allocations: 7.953 kB / 493.6 MB, free: 7.234 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1341, allocations: 0 / 493.6 MB, free: 7.234 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.503e-06/0.1342, allocations: 0 / 493.6 MB, free: 7.234 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.1345, allocations: 466.5 kB / 494.1 MB, free: 6.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004484/0.135, allocations: 241.8 kB / 494.3 MB, free: 6.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.1353, allocations: 0.6729 MB / 495 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.434e-06/0.1353, allocations: 0 / 495 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.26e-05/0.1354, allocations: 7.438 kB / 495 MB, free: 5.797 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1354, allocations: 0 / 495 MB, free: 5.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03299/0.1684, allocations: 4.141 MB / 499.1 MB, free: 1.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.174/8.343, allocations: 10.53 kB / 499.1 MB, free: 1.703 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe 2>&1)