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.001184/0.001184, allocations: 94.97 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001542/0.001542, allocations: 207.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2085/0.2085, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002491/0.0002491, allocations: 11.98 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1326, allocations: 63.47 MB / 481.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0005172/0.1331, allocations: 214.9 kB / 481.7 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002962/0.1361, allocations: 2.098 MB / 483.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.65e-06/0.1361, allocations: 0 / 483.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.372e-06/0.1362, allocations: 0 / 483.8 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.443e-06/0.1362, allocations: 0 / 483.8 MB, free: 2.945 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.00186/0.138, allocations: 0.5059 MB / 484.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.93e-05/0.1381, allocations: 11.97 kB / 484.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.236e-05/0.1381, allocations: 0 / 484.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.1382, allocations: 12 kB / 484.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.46e-05/0.1383, allocations: 7.984 kB / 484.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.079e-06/0.1383, allocations: 0 / 484.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008088/0.1391, allocations: 0.5266 MB / 484.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.659e-06/0.1391, allocations: 0 / 484.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.736e-05/0.1392, allocations: 33.7 kB / 484.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000408/0.1396, allocations: 295.5 kB / 485.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1396, allocations: 0 / 485.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1396, allocations: 0 / 485.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.1396, allocations: 0 / 485.2 MB, free: 1.555 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.0003609/0.14, allocations: 417.1 kB / 485.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.14, allocations: 8.031 kB / 485.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.771e-05/0.1401, allocations: 113.8 kB / 485.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.271e-05/0.1402, allocations: 79.28 kB / 485.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.1403, allocations: 238.3 kB / 486 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.531e-05/0.1403, allocations: 150.6 kB / 486.2 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.895e-05/0.1404, allocations: 162.5 kB / 486.4 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.014e-05/0.1404, allocations: 101 kB / 486.5 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.1405, allocations: 83.22 kB / 486.5 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.305e-05/0.1406, allocations: 158.5 kB / 486.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-05/0.1406, allocations: 150.6 kB / 486.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.914e-05/0.1407, allocations: 150.6 kB / 487 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002519/0.1409, allocations: 445.9 kB / 487.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001126/0.141, allocations: 177.1 kB / 487.6 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.1411, allocations: 79.27 kB / 487.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.288e-05/0.1412, allocations: 135.5 kB / 487.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.002e-06/0.1412, allocations: 0 / 487.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 6.643e-05/0.1412, allocations: 29.69 kB / 487.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.1413, allocations: 160.3 kB / 488 MB, free: 14.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.273e-05/0.1414, allocations: 93.86 kB / 488.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.1414, allocations: 25.7 kB / 488.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.206e-05/0.1414, allocations: 80.14 kB / 488.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.823e-06/0.1414, allocations: 0 / 488.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-07/0.1414, allocations: 0 / 488.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.658e-05/0.1415, allocations: 314.8 kB / 488.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.346e-06/0.1415, allocations: 0 / 488.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.111e-05/0.1416, allocations: 0 / 488.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.969e-05/0.1416, allocations: 75.28 kB / 488.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.373e-05/0.1416, allocations: 83.27 kB / 488.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.102e-05/0.1417, allocations: 29.7 kB / 488.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.1417, allocations: 83.27 kB / 488.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.652e-05/0.1417, allocations: 87.22 kB / 488.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.023e-05/0.1418, allocations: 150.6 kB / 489 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.426e-05/0.1418, allocations: 83.33 kB / 489.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.761e-05/0.1419, allocations: 150.6 kB / 489.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.092e-05/0.142, allocations: 83.28 kB / 489.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.142, allocations: 79.22 kB / 489.4 MB, free: 13.13 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001229/0.1421, allocations: 264.4 kB / 489.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.105e-05/0.1422, allocations: 108.9 kB / 489.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.574e-05/0.1422, allocations: 108 kB / 489.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.107e-05/0.1423, allocations: 180.3 kB / 490 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.461e-05/0.1424, allocations: 184.3 kB / 490.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.887e-05/0.1424, allocations: 180.2 kB / 490.4 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002087/0.1427, allocations: 401.2 kB / 490.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.282e-05/0.1427, allocations: 112.9 kB / 490.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.53e-05/0.1427, allocations: 104.9 kB / 491 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.168e-05/0.1428, allocations: 184.2 kB / 491.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.029e-05/0.1429, allocations: 180.2 kB / 491.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.326e-05/0.1429, allocations: 184.3 kB / 491.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.997e-05/0.143, allocations: 184.2 kB / 491.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001309/0.1431, allocations: 307.8 kB / 492 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.25e-05/0.1432, allocations: 182 kB / 492.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.964e-05/0.1433, allocations: 188.2 kB / 492.4 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.765e-05/0.1434, allocations: 104.9 kB / 492.5 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.666e-05/0.1434, allocations: 176.3 kB / 492.6 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.88e-05/0.1435, allocations: 112.9 kB / 492.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.988e-05/0.1435, allocations: 79.28 kB / 492.8 MB, free: 9.457 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1435, allocations: 0 / 492.8 MB, free: 9.457 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005189/0.144, allocations: 128 kB / 492.9 MB, free: 9.332 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001172/0.1452, allocations: 1.045 MB / 494 MB, free: 8.273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.926e-05/0.1453, allocations: 3.938 kB / 494 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.1453, allocations: 4 kB / 494 MB, free: 8.266 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.908e-06/0.1453, allocations: 3.938 kB / 494 MB, free: 8.262 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.1456, allocations: 0.5301 MB / 494.5 MB, free: 7.727 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003871/0.146, allocations: 231.9 kB / 494.8 MB, free: 7.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.1463, allocations: 0.6731 MB / 495.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.901e-06/0.1463, allocations: 4 kB / 495.4 MB, free: 6.754 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.251e-05/0.1463, allocations: 7.438 kB / 495.4 MB, free: 6.746 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1463, allocations: 0 / 495.4 MB, free: 6.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01758/0.1639, allocations: 3.861 MB / 499.3 MB, free: 2.98 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001891/0.1641, allocations: 208.8 kB / 499.5 MB, free: 2.738 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.069, allocations: 3.938 kB / 499.5 MB, free: 2.734 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat does not exist to compare? outputFormat=mat