Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.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.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",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.0009938/0.0009938, allocations: 98.58 kB / 16.99 MB, free: 5.941 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.000953/0.0009531, allocations: 179.8 kB / 17.87 MB, free: 5.609 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.322/1.322, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2074/0.2074, allocations: 44.23 MB / 337.1 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003208/0.0003209, allocations: 8 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.13, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0005914/0.1306, allocations: 214.9 kB / 471.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00218/0.1328, allocations: 1.665 MB / 473.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.477e-05/0.1328, allocations: 0 / 473.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.118e-05/0.1328, allocations: 0 / 473.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.871e-06/0.1329, allocations: 0 / 473.4 MB, free: 11.75 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:120:3-169:18:writable] Warning: Pure function ‘ModelicaTest.Math.Polynomials‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008198/0.1337, allocations: 179.5 kB / 473.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.587e-05/0.1338, allocations: 3.938 kB / 473.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.623e-05/0.1338, allocations: 3.984 kB / 473.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.411e-05/0.1338, allocations: 4 kB / 473.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.401e-05/0.1339, allocations: 0 / 473.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-06/0.1339, allocations: 0 / 473.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005103/0.1344, allocations: 351.3 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.384e-06/0.1344, allocations: 3.984 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.629e-05/0.1345, allocations: 25.7 kB / 474 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002993/0.1348, allocations: 207.7 kB / 474.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1348, allocations: 0 / 474.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1348, allocations: 0 / 474.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.1348, allocations: 0 / 474.2 MB, free: 10.98 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003747/0.1352, allocations: 385.1 kB / 474.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.1352, allocations: 8.031 kB / 474.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.052e-05/0.1353, allocations: 34.56 kB / 474.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.211e-05/0.1353, allocations: 0 / 474.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.135e-05/0.1354, allocations: 167.1 kB / 474.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-06/0.1354, allocations: 0 / 474.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.1354, allocations: 3.953 kB / 474.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.54e-05/0.1355, allocations: 33.64 kB / 474.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.7e-06/0.1355, allocations: 0 / 474.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.782e-06/0.1355, allocations: 0 / 474.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1355, allocations: 0 / 474.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.805e-05/0.1356, allocations: 0 / 474.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001222/0.1357, allocations: 157.7 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.77e-05/0.1357, allocations: 18.61 kB / 475 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.64e-06/0.1358, allocations: 0 / 475 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.834e-05/0.1358, allocations: 64.16 kB / 475 MB, free: 9.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.1358, allocations: 0 / 475 MB, free: 9.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001716/0.136, allocations: 67.45 kB / 475.1 MB, free: 9.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/0.136, allocations: 89.17 kB / 475.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.184e-05/0.1361, allocations: 89.86 kB / 475.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.1361, allocations: 25.7 kB / 475.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.737e-05/0.1361, allocations: 80.14 kB / 475.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.54e-05/0.1362, allocations: 0 / 475.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-06/0.1362, allocations: 0 / 475.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1363, allocations: 310.8 kB / 475.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.933e-06/0.1363, allocations: 0 / 475.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.509e-06/0.1363, allocations: 4 kB / 475.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.572e-05/0.1363, allocations: 33.7 kB / 475.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1364, allocations: 0 / 475.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.424e-05/0.1364, allocations: 71.38 kB / 475.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.1365, allocations: 29.7 kB / 475.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1365, allocations: 0 / 475.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.1365, allocations: 11.89 kB / 475.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.1365, allocations: 0 / 475.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.1365, allocations: 0 / 475.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.1365, allocations: 0 / 475.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.1365, allocations: 0 / 475.8 MB, free: 9.062 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001089/0.1367, allocations: 144.1 kB / 476 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.818e-06/0.1367, allocations: 3.906 kB / 476 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.027e-05/0.1367, allocations: 3.125 kB / 476 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.1367, allocations: 3.953 kB / 476 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1367, allocations: 0 / 476 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.1367, allocations: 0 / 476 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.891e-05/0.1368, allocations: 153.7 kB / 476.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.1368, allocations: 0 / 476.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1368, allocations: 0 / 476.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.1368, allocations: 4 kB / 476.1 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.1368, allocations: 0 / 476.1 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.1368, allocations: 3.938 kB / 476.1 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.1368, allocations: 7.953 kB / 476.1 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.237e-05/0.1369, allocations: 86.83 kB / 476.2 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.537e-05/0.137, allocations: 77.11 kB / 476.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.137, allocations: 4 kB / 476.3 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.558e-06/0.137, allocations: 4.031 kB / 476.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.397e-05/0.137, allocations: 0 / 476.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.137, allocations: 3.953 kB / 476.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.426e-05/0.1371, allocations: 75.28 kB / 476.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1371, allocations: 0 / 476.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003029/0.1374, allocations: 67.98 kB / 476.5 MB, free: 8.324 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0006528/0.138, allocations: 0.7132 MB / 477.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.459e-05/0.1381, allocations: 63.41 kB / 477.2 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1381, allocations: 0 / 477.2 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.756e-05/0.1382, allocations: 51.5 kB / 477.3 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.466e-05/0.1383, allocations: 14.34 kB / 477.3 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003032/0.1386, allocations: 124.4 kB / 477.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.1388, allocations: 0.6731 MB / 478.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.392e-06/0.1388, allocations: 0 / 478.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.089e-05/0.1388, allocations: 11.38 kB / 478.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1388, allocations: 0 / 478.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01259/0.1514, allocations: 2.174 MB / 480.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.1517, allocations: 218 kB / 480.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/1.947, allocations: 0 / 480.5 MB, free: 4.238 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials_res.mat does not exist to compare? outputFormat=mat