Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008571/0.0008572, allocations: 95.64 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008836/0.0008837, allocations: 186.9 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.2 MB / 241.8 MB, free: 14.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2003/0.2003, allocations: 44.23 MB / 337.1 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003147/0.0003149, allocations: 8 kB / 409.6 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1308, allocations: 61.92 MB / 471.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0004705/0.1313, allocations: 210.9 kB / 471.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002535/0.1338, allocations: 2.019 MB / 473.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.6e-06/0.1339, allocations: 0 / 473.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.641e-06/0.1339, allocations: 3.938 kB / 473.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.91e-07/0.1339, allocations: 0 / 473.8 MB, free: 11.44 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.001651/0.1355, allocations: 0.5009 MB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.359e-05/0.1356, allocations: 8 kB / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.793e-05/0.1356, allocations: 4 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.491e-05/0.1357, allocations: 4 kB / 474.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.315e-05/0.1357, allocations: 11.97 kB / 474.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.448e-06/0.1358, allocations: 0 / 474.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007162/0.1365, allocations: 0.511 MB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.889e-06/0.1365, allocations: 0 / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.297e-05/0.1365, allocations: 29.7 kB / 474.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003719/0.1369, allocations: 299.5 kB / 475.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.1369, allocations: 3.938 kB / 475.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1369, allocations: 0 / 475.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.1369, allocations: 0 / 475.1 MB, free: 10.07 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.0003595/0.1373, allocations: 413.1 kB / 475.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1373, allocations: 12.02 kB / 475.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.608e-05/0.1374, allocations: 105.8 kB / 475.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.1375, allocations: 83.28 kB / 475.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.1376, allocations: 234.4 kB / 476 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.515e-05/0.1376, allocations: 158.5 kB / 476.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.1377, allocations: 158.5 kB / 476.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.416e-05/0.1377, allocations: 101 kB / 476.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.1378, allocations: 75.28 kB / 476.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.641e-05/0.1378, allocations: 154.6 kB / 476.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.752e-05/0.1379, allocations: 154.6 kB / 476.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.535e-05/0.138, allocations: 150.6 kB / 476.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002485/0.1382, allocations: 450 kB / 477.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.864e-05/0.1383, allocations: 177 kB / 477.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.1383, allocations: 75.28 kB / 477.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.995e-05/0.1384, allocations: 143.5 kB / 477.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 7.51e-07/0.1384, allocations: 0 / 477.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 5.869e-05/0.1385, allocations: 25.7 kB / 477.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/0.1385, allocations: 156.3 kB / 477.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.366e-05/0.1386, allocations: 97.86 kB / 478 MB, free: 6.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.1386, allocations: 29.7 kB / 478 MB, free: 6.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.718e-05/0.1386, allocations: 80.14 kB / 478.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.123e-06/0.1386, allocations: 0 / 478.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-07/0.1386, allocations: 0 / 478.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.1388, allocations: 314.8 kB / 478.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.036e-06/0.1388, allocations: 0 / 478.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.052e-05/0.1388, allocations: 4 kB / 478.4 MB, free: 6.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.025e-05/0.1388, allocations: 75.28 kB / 478.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.05e-05/0.1389, allocations: 79.31 kB / 478.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.932e-05/0.1389, allocations: 29.7 kB / 478.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.139, allocations: 79.28 kB / 478.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.461e-05/0.139, allocations: 79.22 kB / 478.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.161e-05/0.1391, allocations: 154.5 kB / 478.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.667e-05/0.1391, allocations: 83.22 kB / 479 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.722e-05/0.1391, allocations: 158.5 kB / 479.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.049e-05/0.1392, allocations: 79.28 kB / 479.2 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.183e-05/0.1393, allocations: 79.22 kB / 479.3 MB, free: 5.656 MB / 350.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.000112/0.1394, allocations: 260.9 kB / 479.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/0.1394, allocations: 105.2 kB / 479.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.747e-05/0.1395, allocations: 116 kB / 479.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-05/0.1396, allocations: 192.2 kB / 479.9 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.627e-05/0.1396, allocations: 176.3 kB / 480.1 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.41e-05/0.1397, allocations: 184.2 kB / 480.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002068/0.1399, allocations: 397.3 kB / 480.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.353e-05/0.1399, allocations: 108.9 kB / 480.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.369e-05/0.14, allocations: 105 kB / 480.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.197e-05/0.1401, allocations: 184.3 kB / 481.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.584e-05/0.1401, allocations: 180.2 kB / 481.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.752e-05/0.1402, allocations: 176.3 kB / 481.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.186e-05/0.1403, allocations: 192.1 kB / 481.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.1404, allocations: 307.8 kB / 481.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.199e-05/0.1405, allocations: 182.1 kB / 482.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.246e-05/0.1405, allocations: 180.2 kB / 482.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.534e-05/0.1406, allocations: 108.9 kB / 482.4 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.773e-05/0.1407, allocations: 180.3 kB / 482.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.555e-05/0.1407, allocations: 112.9 kB / 482.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.546e-05/0.1408, allocations: 75.28 kB / 482.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1408, allocations: 0 / 482.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004922/0.1413, allocations: 132 kB / 482.8 MB, free: 1.855 MB / 350.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.0009759/0.1423, allocations: 1.044 MB / 483.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 3.461e-05/0.1423, allocations: 0 / 483.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1423, allocations: 0 / 483.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.614e-06/0.1423, allocations: 11.92 kB / 483.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.1426, allocations: 0.5263 MB / 484.4 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000376/0.143, allocations: 223.9 kB / 484.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.1432, allocations: 0.6731 MB / 485.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.432e-06/0.1432, allocations: 0 / 485.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.212e-05/0.1432, allocations: 7.438 kB / 485.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1432, allocations: 0 / 485.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01434/0.1576, allocations: 3.758 MB / 489.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/0.1578, allocations: 213.9 kB / 489.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/1.998, allocations: 0 / 489.3 MB, free: 11.39 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat does not exist to compare? outputFormat=mat