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.001192/0.001192, allocations: 99.86 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001427/0.001427, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246 MB, free: 11.81 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2113/0.2113, allocations: 45.92 MB / 344.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002929/0.000293, allocations: 7.984 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1319, allocations: 63.48 MB / 481.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0005376/0.1325, allocations: 210.9 kB / 481.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002976/0.1355, allocations: 2.168 MB / 484 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.558e-06/0.1355, allocations: 0 / 484 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.757e-06/0.1355, allocations: 0 / 484 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.256e-06/0.1356, allocations: 0 / 484 MB, free: 2.879 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.001843/0.1374, allocations: 0.522 MB / 484.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.995e-05/0.1374, allocations: 4 kB / 484.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.376e-05/0.1375, allocations: 4 kB / 484.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.1376, allocations: 15.92 kB / 484.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.914e-05/0.1377, allocations: 7.984 kB / 484.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.348e-06/0.1377, allocations: 0 / 484.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008665/0.1386, allocations: 0.5813 MB / 485.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.034e-06/0.1386, allocations: 0 / 485.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.795e-05/0.1386, allocations: 25.7 kB / 485.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004116/0.139, allocations: 295.6 kB / 485.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.139, allocations: 4 kB / 485.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.65e-06/0.139, allocations: 0 / 485.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.1391, allocations: 3.938 kB / 485.5 MB, free: 1.418 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.0004193/0.1395, allocations: 413.1 kB / 485.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.906e-05/0.1396, allocations: 12.03 kB / 485.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.848e-05/0.1396, allocations: 109.8 kB / 486 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.951e-05/0.1397, allocations: 79.28 kB / 486.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.1398, allocations: 242.2 kB / 486.3 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.969e-05/0.1399, allocations: 150.6 kB / 486.4 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.877e-05/0.1399, allocations: 154.6 kB / 486.6 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.232e-05/0.14, allocations: 101 kB / 486.7 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.38e-05/0.1401, allocations: 79.28 kB / 486.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.65e-05/0.1401, allocations: 150.6 kB / 486.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-05/0.1402, allocations: 150.6 kB / 487.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.472e-05/0.1403, allocations: 154.5 kB / 487.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002804/0.1406, allocations: 453.9 kB / 487.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.01e-05/0.1407, allocations: 173.1 kB / 487.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.447e-05/0.1407, allocations: 80.14 kB / 487.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.009e-05/0.1407, allocations: 75.28 kB / 488 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.054e-05/0.1408, allocations: 135.5 kB / 488.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 3.877e-06/0.1408, allocations: 4 kB / 488.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.405e-05/0.1409, allocations: 41.56 kB / 488.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.141, allocations: 152.4 kB / 488.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.939e-05/0.141, allocations: 89.86 kB / 488.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.141, allocations: 25.7 kB / 488.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.448e-05/0.1411, allocations: 88.12 kB / 488.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.703e-06/0.1411, allocations: 0 / 488.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9e-08/0.1411, allocations: 0 / 488.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1412, allocations: 310.8 kB / 488.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.978e-06/0.1412, allocations: 4 kB / 488.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.159e-05/0.1412, allocations: 0 / 488.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.683e-05/0.1413, allocations: 83.23 kB / 488.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.867e-05/0.1413, allocations: 75.28 kB / 489 MB, free: 13.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.759e-05/0.1414, allocations: 29.64 kB / 489 MB, free: 13.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.884e-05/0.1414, allocations: 83.28 kB / 489.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.733e-05/0.1414, allocations: 83.33 kB / 489.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.555e-05/0.1415, allocations: 162.6 kB / 489.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.422e-05/0.1415, allocations: 79.27 kB / 489.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.925e-05/0.1416, allocations: 154.6 kB / 489.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.723e-05/0.1417, allocations: 79.22 kB / 489.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/0.1417, allocations: 75.28 kB / 489.7 MB, free: 12.91 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.0001152/0.1418, allocations: 268.4 kB / 490 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.404e-05/0.1419, allocations: 108.9 kB / 490.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.821e-05/0.1419, allocations: 112.1 kB / 490.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.523e-05/0.142, allocations: 176.3 kB / 490.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.609e-05/0.1421, allocations: 180.2 kB / 490.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.25e-05/0.1421, allocations: 176.3 kB / 490.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.1424, allocations: 417.2 kB / 491.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.732e-05/0.1424, allocations: 104.9 kB / 491.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.994e-05/0.1424, allocations: 101 kB / 491.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.617e-05/0.1425, allocations: 180.2 kB / 491.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.675e-05/0.1426, allocations: 180.3 kB / 491.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.429e-05/0.1426, allocations: 184.2 kB / 491.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.526e-05/0.1427, allocations: 188.2 kB / 492 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001547/0.1429, allocations: 299.8 kB / 492.3 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.839e-05/0.143, allocations: 182 kB / 492.5 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.634e-05/0.143, allocations: 192.2 kB / 492.7 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.27e-05/0.1431, allocations: 108.9 kB / 492.8 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.073e-05/0.1432, allocations: 184.2 kB / 493 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.043e-05/0.1432, allocations: 104.9 kB / 493.1 MB, free: 9.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.268e-05/0.1433, allocations: 75.28 kB / 493.1 MB, free: 9.246 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1433, allocations: 0 / 493.1 MB, free: 9.246 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005003/0.1438, allocations: 136 kB / 493.3 MB, free: 9.113 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.0009169/0.1447, allocations: 1.042 MB / 494.3 MB, free: 8.059 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.292e-05/0.1448, allocations: 11.94 kB / 494.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1448, allocations: 0 / 494.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.263e-06/0.1448, allocations: 0 / 494.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.1452, allocations: 0.5224 MB / 494.8 MB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004088/0.1456, allocations: 235.6 kB / 495.1 MB, free: 7.246 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.1459, allocations: 0.6731 MB / 495.8 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.111e-06/0.1459, allocations: 0 / 495.8 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.247e-05/0.146, allocations: 7.438 kB / 495.8 MB, free: 6.539 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.146, allocations: 0 / 495.8 MB, free: 6.539 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01612/0.1621, allocations: 3.86 MB / 499.6 MB, free: 2.773 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.1624, allocations: 206.5 kB / 499.8 MB, free: 2.535 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.024, allocations: 0 / 499.8 MB, free: 2.535 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