Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.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.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",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.091/2.091, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001081/0.001081, allocations: 176 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 221.3 MB / 0.7915 GB, free: 5.367 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.001029/0.001029, allocations: 99.89 kB / 0.9318 GB, free: 5.676 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.628e-05/3.63e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2402, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9175/1.158, allocations: 150.3 MB / 1.366 GB, free: 3.734 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/1.158, allocations: 70.64 kB / 1.366 GB, free: 3.695 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002717/1.161, allocations: 0.9523 MB / 1.367 GB, free: 2.844 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.703e-06/1.161, allocations: 0 / 1.367 GB, free: 2.844 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.284e-06/1.161, allocations: 0 / 1.367 GB, free: 2.844 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003831/1.161, allocations: 341.8 kB / 1.367 GB, free: 2.469 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/1.161, allocations: 8.031 kB / 1.367 GB, free: 2.461 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.719e-05/1.161, allocations: 34.56 kB / 1.367 GB, free: 2.418 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.491e-05/1.161, allocations: 4.719 kB / 1.367 GB, free: 2.414 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/1.161, allocations: 167.8 kB / 1.367 GB, free: 2.211 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/1.162, allocations: 8 kB / 1.367 GB, free: 2.203 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/1.162, allocations: 3.438 kB / 1.367 GB, free: 2.203 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/1.162, allocations: 45.17 kB / 1.367 GB, free: 2.156 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/1.162, allocations: 0 / 1.367 GB, free: 2.156 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/1.162, allocations: 7.125 kB / 1.367 GB, free: 2.152 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/1.162, allocations: 3.938 kB / 1.367 GB, free: 2.148 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.065e-05/1.162, allocations: 11.38 kB / 1.367 GB, free: 2.141 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004478/1.162, allocations: 290 kB / 1.367 GB, free: 1.82 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002369/1.162, allocations: 41.56 kB / 1.368 GB, free: 1.777 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.172e-05/1.162, allocations: 12.23 kB / 1.368 GB, free: 1.766 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001181/1.163, allocations: 81.11 kB / 1.368 GB, free: 1.668 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/1.163, allocations: 42.02 kB / 1.368 GB, free: 1.621 MB / 0.823 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/1.163, allocations: 0 / 1.368 GB, free: 1.621 MB / 0.823 GB Notification: Performance of matching and sorting (n=3): time 0.0001699/1.163, allocations: 52.75 kB / 1.368 GB, free: 1.566 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/1.163, allocations: 59.34 kB / 1.368 GB, free: 1.496 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.198e-05/1.163, allocations: 92.94 kB / 1.368 GB, free: 1.402 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/1.163, allocations: 25.7 kB / 1.368 GB, free: 1.371 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.059e-05/1.163, allocations: 87.3 kB / 1.368 GB, free: 1.285 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/1.163, allocations: 7.906 kB / 1.368 GB, free: 1.277 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.067e-06/1.163, allocations: 0 / 1.368 GB, free: 1.277 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001308/1.163, allocations: 322.8 kB / 1.368 GB, free: 0.957 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.139e-05/1.163, allocations: 4 kB / 1.368 GB, free: 0.9531 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.773e-05/1.163, allocations: 7.25 kB / 1.368 GB, free: 0.9492 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.53e-05/1.163, allocations: 7 kB / 1.368 GB, free: 0.9453 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/1.163, allocations: 4 kB / 1.368 GB, free: 0.9414 MB / 0.823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.558e-05/1.163, allocations: 49.19 kB / 1.368 GB, free: 0.8906 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/1.163, allocations: 4 kB / 1.368 GB, free: 0.8867 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/1.163, allocations: 0 / 1.368 GB, free: 0.8867 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/1.163, allocations: 4 kB / 1.368 GB, free: 0.8828 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.9e-05/1.164, allocations: 15.98 kB / 1.368 GB, free: 0.8672 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/1.164, allocations: 3.938 kB / 1.368 GB, free: 0.8633 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.573e-05/1.164, allocations: 23.12 kB / 1.368 GB, free: 0.8438 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-06/1.164, allocations: 0 / 1.368 GB, free: 0.8438 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fac.y,fac.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.133e-05/1.164, allocations: 101 kB / 1.368 GB, free: 0.7383 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/1.164, allocations: 4 kB / 1.368 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/1.164, allocations: 64.73 kB / 1.369 GB, free: 0.6719 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/1.164, allocations: 0 / 1.369 GB, free: 0.6719 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/1.164, allocations: 0 / 1.369 GB, free: 0.6719 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/1.164, allocations: 0 / 1.369 GB, free: 0.6719 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001639/1.164, allocations: 172.7 kB / 1.369 GB, free: 472 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/1.164, allocations: 0 / 1.369 GB, free: 472 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.24e-05/1.164, allocations: 16.86 kB / 1.369 GB, free: 456 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/1.164, allocations: 0 / 1.369 GB, free: 456 kB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/1.164, allocations: 0 / 1.369 GB, free: 456 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/1.164, allocations: 0 / 1.369 GB, free: 456 kB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/1.164, allocations: 4 kB / 1.369 GB, free: 452 kB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000132/1.164, allocations: 150.2 kB / 1.369 GB, free: 292 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.649e-05/1.164, allocations: 77.11 kB / 1.369 GB, free: 196 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/1.164, allocations: 7.875 kB / 1.369 GB, free: 192 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.81e-05/1.165, allocations: 11.98 kB / 1.369 GB, free: 180 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.49e-05/1.165, allocations: 12.39 kB / 1.369 GB, free: 168 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/1.165, allocations: 4 kB / 1.369 GB, free: 164 kB / 0.823 GB Notification: Performance of sorting global known variables: time 3.905e-05/1.165, allocations: 86.58 kB / 1.369 GB, free: 80 kB / 0.823 GB Notification: Performance of sort global known variables: time 1.3e-07/1.165, allocations: 0 / 1.369 GB, free: 80 kB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002089/1.165, allocations: 15.94 kB / 1.369 GB, free: 64 kB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fac.y,fac.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0004577/1.165, allocations: 0.6915 MB / 1.37 GB, free: 15.36 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001009/1.165, allocations: 27.67 kB / 1.37 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/1.165, allocations: 0 / 1.37 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.363e-05/1.166, allocations: 11.88 kB / 1.37 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/1.166, allocations: 1.25 kB / 1.37 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003553/1.166, allocations: 109.2 kB / 1.37 GB, free: 15.19 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/1.166, allocations: 0.677 MB / 1.371 GB, free: 14.48 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.436e-05/1.166, allocations: 8 kB / 1.371 GB, free: 14.48 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.837e-05/1.166, allocations: 10.88 kB / 1.371 GB, free: 14.47 MB / 0.8386 GB Notification: Performance of SimCode: time 3.2e-07/1.166, allocations: 0 / 1.371 GB, free: 14.47 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0131/1.179, allocations: 1.28 MB / 1.372 GB, free: 13.3 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/1.18, allocations: 150.2 kB / 1.372 GB, free: 13.08 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.415/2.595, allocations: 0 / 1.372 GB, free: 13.08 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat does not exist to compare? outputFormat=mat