Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001645/0.001645, allocations: 116.8 kB / 17.17 MB, free: 6 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 214.3 kB / 20.13 MB, free: 3.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.527/1.527, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.839/2.839, allocations: 476.7 MB / 0.7678 GB, free: 9.359 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0022/0.0022, allocations: 67.91 kB / 1.113 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9987/1.001, allocations: 169.9 MB / 1.279 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003541/1.004, allocations: 1.544 MB / 1.28 GB, free: 10.67 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0004754/1.005, allocations: 128.4 kB / 1.281 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.636e-05/1.005, allocations: 1.094 kB / 1.281 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.057e-05/1.005, allocations: 4.641 kB / 1.281 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.57e-05/1.005, allocations: 3.938 kB / 1.281 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/1.005, allocations: 19.81 kB / 1.281 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.497e-05/1.005, allocations: 32.39 kB / 1.281 GB, free: 10.55 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/1.006, allocations: 9.203 kB / 1.281 GB, free: 10.55 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.847e-05/1.006, allocations: 11.66 kB / 1.281 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.964e-05/1.006, allocations: 16 kB / 1.281 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.641e-05/1.006, allocations: 6.5 kB / 1.281 GB, free: 10.53 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.335e-05/1.006, allocations: 16.86 kB / 1.281 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/1.006, allocations: 6.547 kB / 1.281 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.542e-05/1.006, allocations: 17.73 kB / 1.281 GB, free: 10.51 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001376/1.006, allocations: 31.95 kB / 1.281 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/1.006, allocations: 0 / 1.281 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.493e-06/1.006, allocations: 0 / 1.281 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.749e-06/1.006, allocations: 0.75 kB / 1.281 GB, free: 10.5 MB / 0.9981 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.0006484/1.007, allocations: 352.9 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/1.007, allocations: 13.62 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.454e-05/1.007, allocations: 1.094 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.259e-05/1.007, allocations: 36.58 kB / 1.281 GB, free: 10.08 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.005e-05/1.007, allocations: 1.906 kB / 1.281 GB, free: 10.08 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/1.007, allocations: 167.9 kB / 1.281 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/1.007, allocations: 2.328 kB / 1.281 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.704e-05/1.007, allocations: 2.469 kB / 1.281 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002411/1.007, allocations: 62.31 kB / 1.281 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/1.007, allocations: 0 / 1.281 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/1.007, allocations: 5 kB / 1.281 GB, free: 9.832 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/1.007, allocations: 0 / 1.281 GB, free: 9.832 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002738/1.008, allocations: 46.59 kB / 1.281 GB, free: 9.82 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004765/1.008, allocations: 268 kB / 1.282 GB, free: 9.535 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/1.008, allocations: 60.38 kB / 1.282 GB, free: 9.5 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/1.009, allocations: 25.06 kB / 1.282 GB, free: 9.488 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002436/1.009, allocations: 85.56 kB / 1.282 GB, free: 9.391 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/1.009, allocations: 35.94 kB / 1.282 GB, free: 9.348 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/1.009, allocations: 0.75 kB / 1.282 GB, free: 9.348 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0005489/1.009, allocations: 92.36 kB / 1.282 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/1.009, allocations: 52.78 kB / 1.282 GB, free: 9.242 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/1.01, allocations: 101.9 kB / 1.282 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/1.01, allocations: 25.7 kB / 1.282 GB, free: 9.109 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.464e-05/1.01, allocations: 90.2 kB / 1.282 GB, free: 9.02 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.079e-05/1.01, allocations: 4.953 kB / 1.282 GB, free: 9.016 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/1.01, allocations: 15.09 kB / 1.282 GB, free: 9 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002477/1.01, allocations: 321.5 kB / 1.283 GB, free: 8.68 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/1.01, allocations: 23.62 kB / 1.283 GB, free: 8.672 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/1.01, allocations: 16.5 kB / 1.283 GB, free: 8.672 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/1.011, allocations: 50.66 kB / 1.283 GB, free: 8.652 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/1.011, allocations: 0 / 1.283 GB, free: 8.652 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000339/1.011, allocations: 77.02 kB / 1.283 GB, free: 8.609 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/1.011, allocations: 9.125 kB / 1.283 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/1.011, allocations: 1.281 kB / 1.283 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/1.011, allocations: 0.5 kB / 1.283 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/1.011, allocations: 10.91 kB / 1.283 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/1.011, allocations: 1.312 kB / 1.283 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.266e-05/1.011, allocations: 5.578 kB / 1.283 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/1.011, allocations: 2.391 kB / 1.283 GB, free: 8.605 MB / 0.9981 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001055/1.011, allocations: 112 kB / 1.283 GB, free: 8.488 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/1.011, allocations: 10.16 kB / 1.283 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003803/1.012, allocations: 86.08 kB / 1.283 GB, free: 8.426 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/1.012, allocations: 5.453 kB / 1.283 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/1.012, allocations: 0.6562 kB / 1.283 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/1.012, allocations: 0 / 1.283 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002593/1.012, allocations: 167.5 kB / 1.283 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/1.012, allocations: 0.5312 kB / 1.283 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/1.012, allocations: 11.55 kB / 1.283 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/1.012, allocations: 4.531 kB / 1.283 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/1.012, allocations: 5.297 kB / 1.283 GB, free: 8.215 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/1.012, allocations: 0.5625 kB / 1.283 GB, free: 8.215 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.012, allocations: 0 / 1.283 GB, free: 8.215 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004051/1.012, allocations: 177 kB / 1.283 GB, free: 8.066 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.409e-05/1.013, allocations: 78.78 kB / 1.283 GB, free: 7.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/1.013, allocations: 5.797 kB / 1.283 GB, free: 7.969 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/1.013, allocations: 5.766 kB / 1.283 GB, free: 7.969 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.785e-05/1.013, allocations: 9.984 kB / 1.283 GB, free: 7.965 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/1.013, allocations: 1.562 kB / 1.283 GB, free: 7.965 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.47e-05/1.013, allocations: 79.89 kB / 1.283 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/1.013, allocations: 0 / 1.283 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003989/1.013, allocations: 11.31 kB / 1.283 GB, free: 7.887 MB / 0.9981 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,rea2Int.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009948/1.014, allocations: 0.7175 MB / 1.284 GB, free: 7.203 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003353/1.015, allocations: 46.16 kB / 1.284 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/1.015, allocations: 0 / 1.284 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001513/1.015, allocations: 25.05 kB / 1.284 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004255/1.015, allocations: 6.969 kB / 1.284 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006525/1.016, allocations: 154.5 kB / 1.284 GB, free: 7.027 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/1.016, allocations: 0.6772 MB / 1.285 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.252e-05/1.016, allocations: 4.359 kB / 1.285 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.67e-05/1.016, allocations: 15.05 kB / 1.285 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of SimCode: time 3.81e-07/1.016, allocations: 4 kB / 1.285 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02342/1.04, allocations: 1.613 MB / 1.287 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.764/9.803, allocations: 13.7 kB / 1.287 GB, free: 5.902 MB / 0.9981 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 16.04069526301464] Failed to read output from testmodel.py, exit status != 0: 9.928499475005083 9.945148614 8.935684481 Calling exit ...