Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Polynomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Polynomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.065/2.065, allocations: 390.5 MB / 398 MB, free: 10.94 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008952/0.0008955, allocations: 168.8 kB / 491.2 MB, free: 1.551 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 221.5 MB / 0.7868 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008932/0.0008931, allocations: 91.47 kB / 0.9269 GB, free: 13.83 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.959e-05/1.961e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2426, allocations: 143 MB / 1.212 GB, free: 39.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7284/0.971, allocations: 149.3 MB / 1.358 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001864/0.9712, allocations: 70.88 kB / 1.358 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002535/0.9738, allocations: 0.7894 MB / 1.359 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9738, allocations: 0 / 1.359 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.9738, allocations: 0 / 1.359 GB, free: 33.21 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002754/0.9741, allocations: 343.5 kB / 1.359 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.9741, allocations: 7.688 kB / 1.359 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.727e-05/0.9742, allocations: 8.5 kB / 1.359 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.563e-05/0.9743, allocations: 166.8 kB / 1.36 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.9743, allocations: 1.5 kB / 1.36 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.9743, allocations: 3.969 kB / 1.36 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.777e-05/0.9744, allocations: 12.92 kB / 1.36 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.837e-05/0.9744, allocations: 44.89 kB / 1.36 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.842e-06/0.9744, allocations: 0 / 1.36 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.9745, allocations: 0 / 1.36 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.9745, allocations: 3.781 kB / 1.36 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000317/0.9748, allocations: 243.8 kB / 1.36 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.755e-05/0.9748, allocations: 31.12 kB / 1.36 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.357e-05/0.9749, allocations: 20.67 kB / 1.36 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.9749, allocations: 3.828 kB / 1.36 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.269e-05/0.9749, allocations: 35.19 kB / 1.36 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.9749, allocations: 3.875 kB / 1.36 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001596/0.9751, allocations: 43 kB / 1.36 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.525e-05/0.9751, allocations: 58.34 kB / 1.36 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.528e-05/0.9752, allocations: 96.7 kB / 1.36 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.915e-06/0.9752, allocations: 25.7 kB / 1.36 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.9752, allocations: 89.02 kB / 1.36 GB, free: 32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.32e-05/0.9753, allocations: 7.844 kB / 1.36 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-06/0.9753, allocations: 0 / 1.36 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.553e-05/0.9754, allocations: 319.9 kB / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.6e-05/0.9754, allocations: 3.875 kB / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.471e-05/0.9754, allocations: 12.66 kB / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.997e-05/0.9754, allocations: 12.58 kB / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.9754, allocations: 0 / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.084e-05/0.9755, allocations: 48.12 kB / 1.361 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.9756, allocations: 5.438 kB / 1.361 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.9756, allocations: 3.938 kB / 1.361 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.889e-06/0.9756, allocations: 6.781 kB / 1.361 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.529e-05/0.9757, allocations: 10.75 kB / 1.361 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.9757, allocations: 0 / 1.361 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.913e-05/0.9757, allocations: 15.3 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.9758, allocations: 0 / 1.361 GB, free: 31.62 MB / 0.8386 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 4.414e-05/0.9758, allocations: 108.9 kB / 1.361 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.266e-05/0.9759, allocations: 44.67 kB / 1.361 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.899e-05/0.9759, allocations: 3.969 kB / 1.361 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.976, allocations: 58.36 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.976, allocations: 0 / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.9761, allocations: 4.047 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.9761, allocations: 7.844 kB / 1.361 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.776e-05/0.9762, allocations: 140.7 kB / 1.361 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.9762, allocations: 0 / 1.361 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.98e-05/0.9762, allocations: 10.2 kB / 1.361 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.9762, allocations: 0 / 1.361 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.9763, allocations: 5.328 kB / 1.361 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.9763, allocations: 0 / 1.361 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.9763, allocations: 0 / 1.361 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001011/0.9764, allocations: 150.7 kB / 1.361 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.652e-05/0.9764, allocations: 80.98 kB / 1.361 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.9764, allocations: 0.5625 kB / 1.361 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.929e-05/0.9765, allocations: 7.062 kB / 1.361 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.05e-05/0.9765, allocations: 9.062 kB / 1.361 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.299e-06/0.9765, allocations: 0 / 1.361 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.016e-05/0.9766, allocations: 88.78 kB / 1.361 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9766, allocations: 4.031 kB / 1.361 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001956/0.9768, allocations: 7.812 kB / 1.361 GB, free: 30.95 MB / 0.8386 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0003467/0.9771, allocations: 0.6796 MB / 1.362 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 6.14e-05/0.9772, allocations: 16.28 kB / 1.362 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.9772, allocations: 4.094 kB / 1.362 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.932e-05/0.9772, allocations: 14.94 kB / 1.362 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.9774, allocations: 0 / 1.362 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002724/0.9777, allocations: 106.5 kB / 1.362 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.9779, allocations: 0.6856 MB / 1.363 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.193e-05/0.978, allocations: 0.875 kB / 1.363 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.16e-05/0.978, allocations: 7.438 kB / 1.363 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/0.978, allocations: 4.062 kB / 1.363 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.9947, allocations: 0.8374 MB / 1.364 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001362/0.9949, allocations: 142.5 kB / 1.364 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.369/2.364, allocations: 0 / 1.364 GB, free: 29.22 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Polynomial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Polynomial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.Polynomial_res.mat does not exist to compare? outputFormat=mat