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.001795/0.001795, allocations: 106.6 kB / 17.64 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002315/0.002315, allocations: 222.4 kB / 18.59 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.8 MB, free: 10.55 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.2373/0.2373, allocations: 46.12 MB / 344.2 MB, free: 11.54 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.002163/0.002164, allocations: 78.72 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.121, allocations: 62.46 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001643/0.1227, allocations: 479.8 kB / 480.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003527/0.1262, allocations: 2.291 MB / 483 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.421e-06/0.1262, allocations: 0 / 483 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.417e-06/0.1263, allocations: 0 / 483 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.233e-06/0.1263, allocations: 0 / 483 MB, free: 2.332 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.002185/0.1285, allocations: 0.6275 MB / 483.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.351e-05/0.1285, allocations: 7.984 kB / 483.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.892e-05/0.1286, allocations: 7.938 kB / 483.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.1287, allocations: 19.94 kB / 483.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.361e-05/0.1287, allocations: 7.984 kB / 483.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.71e-06/0.1288, allocations: 0 / 483.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001/0.1298, allocations: 0.6242 MB / 484.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.222e-06/0.1298, allocations: 0 / 484.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.4e-05/0.1298, allocations: 0 / 484.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006211/0.1304, allocations: 447.3 kB / 484.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1304, allocations: 0 / 484.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1304, allocations: 4 kB / 484.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.1305, allocations: 4 kB / 484.7 MB, free: 0.5938 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.000457/0.1309, allocations: 425.2 kB / 485.1 MB, free: 128 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.131, allocations: 12.03 kB / 485.1 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.328e-05/0.131, allocations: 106 kB / 485.2 MB, free: 0 / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.579e-05/0.1311, allocations: 76.28 kB / 485.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.1313, allocations: 243.6 kB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.943e-05/0.1313, allocations: 154.9 kB / 485.7 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-05/0.1314, allocations: 162.5 kB / 485.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.654e-05/0.1315, allocations: 108.9 kB / 486 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.153e-05/0.1315, allocations: 75.28 kB / 486 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.511e-05/0.1316, allocations: 150.6 kB / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.431e-05/0.1317, allocations: 150.6 kB / 486.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.089e-05/0.1318, allocations: 154.6 kB / 486.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004601/0.1322, allocations: 446 kB / 486.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.1324, allocations: 177 kB / 487.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.743e-05/0.1324, allocations: 80.14 kB / 487.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.664e-05/0.1325, allocations: 79.28 kB / 487.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.62e-05/0.1326, allocations: 135.5 kB / 487.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 9.71e-07/0.1326, allocations: 0 / 487.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.827e-05/0.1327, allocations: 25.7 kB / 487.4 MB, free: 13.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.1328, allocations: 156.3 kB / 487.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.081e-05/0.1329, allocations: 93.86 kB / 487.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.1329, allocations: 25.7 kB / 487.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.884e-05/0.1329, allocations: 88.14 kB / 487.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.603e-06/0.1329, allocations: 0 / 487.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/0.133, allocations: 13.72 kB / 487.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1331, allocations: 314.8 kB / 488.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.823e-06/0.1332, allocations: 0 / 488.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.346e-05/0.1332, allocations: 3.938 kB / 488.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.71e-05/0.1333, allocations: 79.28 kB / 488.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.153e-05/0.1333, allocations: 75.28 kB / 488.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.619e-05/0.1334, allocations: 33.67 kB / 488.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.216e-05/0.1334, allocations: 83.28 kB / 488.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/0.1335, allocations: 83.16 kB / 488.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001451/0.1336, allocations: 150.6 kB / 488.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.599e-05/0.1337, allocations: 91.14 kB / 488.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-05/0.1337, allocations: 154.6 kB / 488.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.051e-05/0.1338, allocations: 79.28 kB / 488.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.1339, allocations: 79.22 kB / 489 MB, free: 12.05 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.0001419/0.134, allocations: 260.4 kB / 489.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-05/0.1341, allocations: 109 kB / 489.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.615e-05/0.1342, allocations: 120 kB / 489.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.046e-05/0.1342, allocations: 176.3 kB / 489.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.059e-05/0.1343, allocations: 180.3 kB / 489.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.3e-05/0.1344, allocations: 180.2 kB / 490 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.1347, allocations: 405.2 kB / 490.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-05/0.1348, allocations: 108.9 kB / 490.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.481e-05/0.1348, allocations: 101 kB / 490.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.612e-05/0.1349, allocations: 180.3 kB / 490.8 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.87e-05/0.135, allocations: 184.2 kB / 490.9 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-05/0.1351, allocations: 176.3 kB / 491.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.329e-05/0.1352, allocations: 184.2 kB / 491.3 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001934/0.1354, allocations: 307.8 kB / 491.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.269e-05/0.1355, allocations: 182 kB / 491.8 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.848e-05/0.1356, allocations: 184.2 kB / 491.9 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.1357, allocations: 108.9 kB / 492.1 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.466e-05/0.1358, allocations: 184.3 kB / 492.2 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.968e-05/0.1359, allocations: 101 kB / 492.3 MB, free: 8.477 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.041e-05/0.1359, allocations: 83.22 kB / 492.4 MB, free: 8.395 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1359, allocations: 0 / 492.4 MB, free: 8.395 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006304/0.1366, allocations: 132 kB / 492.5 MB, free: 8.266 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.001569/0.1381, allocations: 1.056 MB / 493.6 MB, free: 7.191 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.936e-05/0.1382, allocations: 12.02 kB / 493.6 MB, free: 7.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1382, allocations: 0 / 493.6 MB, free: 7.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.058e-06/0.1382, allocations: 3.938 kB / 493.6 MB, free: 7.176 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005219/0.1388, allocations: 462 kB / 494.1 MB, free: 6.723 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005201/0.1393, allocations: 241.8 kB / 494.3 MB, free: 6.445 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.1397, allocations: 0.669 MB / 495 MB, free: 5.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.617e-06/0.1397, allocations: 0 / 495 MB, free: 5.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.202e-05/0.1398, allocations: 11.44 kB / 495 MB, free: 5.742 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1398, allocations: 0 / 495 MB, free: 5.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02826/0.168, allocations: 4.149 MB / 499.1 MB, free: 1.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.015/8.183, allocations: 5.141 kB / 499.1 MB, free: 1.645 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe 2>&1)