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.0007147/0.0007148, allocations: 92.52 kB / 17 MB, free: 6.418 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.0007319/0.0007319, allocations: 188.9 kB / 17.89 MB, free: 5.945 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.26/1.26, allocations: 223.2 MB / 241.9 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2033/0.2033, allocations: 44.22 MB / 337.2 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003134/0.0003135, allocations: 12 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1123, allocations: 61.92 MB / 471.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0005843/0.113, allocations: 214.9 kB / 471.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.1152, allocations: 1.661 MB / 473.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.852e-05/0.1153, allocations: 0 / 473.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.312e-05/0.1153, allocations: 4 kB / 473.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.771e-06/0.1153, allocations: 0 / 473.5 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.0007593/0.1161, allocations: 199.5 kB / 473.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.183e-05/0.1161, allocations: 0 / 473.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.207e-05/0.1162, allocations: 0 / 473.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.807e-05/0.1162, allocations: 4 kB / 473.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.695e-05/0.1162, allocations: 7.984 kB / 473.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.698e-06/0.1162, allocations: 0 / 473.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005435/0.1168, allocations: 371.3 kB / 474.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.516e-06/0.1168, allocations: 3.984 kB / 474.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.673e-05/0.1168, allocations: 25.7 kB / 474.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002897/0.1171, allocations: 203.6 kB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1171, allocations: 4 kB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1171, allocations: 0 / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.1171, allocations: 0 / 474.3 MB, free: 10.95 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.0003254/0.1175, allocations: 391.3 kB / 474.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.1175, allocations: 12.03 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.842e-05/0.1175, allocations: 30.56 kB / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.081e-05/0.1176, allocations: 3.938 kB / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.281e-05/0.1177, allocations: 163.1 kB / 474.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.1177, allocations: 0 / 474.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-06/0.1177, allocations: 3.953 kB / 474.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.249e-05/0.1178, allocations: 29.7 kB / 474.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.1178, allocations: 0 / 474.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-06/0.1178, allocations: 4 kB / 474.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1178, allocations: 0 / 474.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.811e-05/0.1178, allocations: 4 kB / 474.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001188/0.1179, allocations: 149.7 kB / 475.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.405e-05/0.118, allocations: 18.52 kB / 475.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.278e-05/0.118, allocations: 8.953 kB / 475.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.961e-06/0.118, allocations: 0 / 475.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.1181, allocations: 64.22 kB / 475.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1181, allocations: 0 / 475.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001667/0.1182, allocations: 71.33 kB / 475.2 MB, free: 9.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.1183, allocations: 77.11 kB / 475.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.263e-05/0.1183, allocations: 89.86 kB / 475.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.1184, allocations: 25.7 kB / 475.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.651e-05/0.1184, allocations: 84.14 kB / 475.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.1184, allocations: 0 / 475.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.573e-06/0.1184, allocations: 0 / 475.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1185, allocations: 315 kB / 475.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.625e-06/0.1186, allocations: 0 / 475.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.258e-06/0.1186, allocations: 0 / 475.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.905e-05/0.1186, allocations: 33.64 kB / 475.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1186, allocations: 0 / 475.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.874e-05/0.1187, allocations: 67.39 kB / 475.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.997e-05/0.1187, allocations: 29.7 kB / 476 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1187, allocations: 3.953 kB / 476 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.1187, allocations: 4.094 kB / 476 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.1187, allocations: 3.938 kB / 476 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1188, allocations: 0 / 476 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.1188, allocations: 4 kB / 476 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.1188, allocations: 0 / 476 MB, free: 9.023 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 7.859e-05/0.1189, allocations: 136.1 kB / 476.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.714e-06/0.1189, allocations: 11.84 kB / 476.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.656e-06/0.1189, allocations: 3.125 kB / 476.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1189, allocations: 3.953 kB / 476.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1189, allocations: 4 kB / 476.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.1189, allocations: 0 / 476.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.962e-05/0.119, allocations: 149.7 kB / 476.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.119, allocations: 8 kB / 476.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.119, allocations: 0 / 476.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.119, allocations: 0 / 476.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.119, allocations: 0 / 476.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.119, allocations: 0 / 476.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1191, allocations: 3.953 kB / 476.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.137e-05/0.1191, allocations: 94.83 kB / 476.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.091e-05/0.1192, allocations: 81.05 kB / 476.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.074e-05/0.1192, allocations: 0 / 476.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.007e-05/0.1192, allocations: 4 kB / 476.5 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.424e-05/0.1192, allocations: 3.953 kB / 476.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.1192, allocations: 0 / 476.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.399e-05/0.1193, allocations: 75.28 kB / 476.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1193, allocations: 0 / 476.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000287/0.1196, allocations: 59.98 kB / 476.6 MB, free: 8.289 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.0006573/0.1202, allocations: 0.7276 MB / 477.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.446e-05/0.1203, allocations: 63.34 kB / 477.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1204, allocations: 0 / 477.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.83e-05/0.1204, allocations: 59.34 kB / 477.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.1205, allocations: 7.938 kB / 477.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002738/0.1208, allocations: 124.3 kB / 477.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.1211, allocations: 0.6692 MB / 478.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.859e-06/0.1211, allocations: 0 / 478.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.342e-05/0.1211, allocations: 15.56 kB / 478.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1211, allocations: 0 / 478.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01227/0.1334, allocations: 2.177 MB / 480.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001947/0.1336, allocations: 216.4 kB / 480.6 MB, free: 4.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.074/2.207, allocations: 0 / 480.6 MB, free: 4.195 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