Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001405/0.001405, allocations: 114.7 kB / 17.16 MB, free: 5.895 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.00159/0.00159, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002527/0.002527, allocations: 277.8 kB / 309.8 MB, free: 3.48 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.083/1.083, allocations: 180.6 MB / 0.5338 GB, free: 12.38 MB / 398.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.002796/0.002796, allocations: 99.84 kB / 0.7347 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5127/0.5155, allocations: 95.34 MB / 0.8278 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002345/0.5178, allocations: 1.544 MB / 0.8293 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003051/0.5181, allocations: 134.3 kB / 0.8294 GB, free: 1.867 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.383e-05/0.5182, allocations: 0 / 0.8294 GB, free: 1.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 2.857e-05/0.5182, allocations: 4.547 kB / 0.8294 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.767e-05/0.5182, allocations: 0.6562 kB / 0.8294 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002258/0.5185, allocations: 29.36 kB / 0.8295 GB, free: 1.848 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.34e-05/0.5185, allocations: 28.14 kB / 0.8295 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 8.501e-05/0.5186, allocations: 8.828 kB / 0.8295 GB, free: 1.832 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.12e-05/0.5187, allocations: 9.141 kB / 0.8295 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.65e-05/0.5187, allocations: 24.98 kB / 0.8295 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.5187, allocations: 4.562 kB / 0.8295 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 5.691e-05/0.5188, allocations: 11.66 kB / 0.8295 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.425e-05/0.5188, allocations: 12.33 kB / 0.8296 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.429e-05/0.5188, allocations: 15.64 kB / 0.8296 GB, free: 1.789 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001114/0.5189, allocations: 37.61 kB / 0.8296 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.5189, allocations: 0.6094 kB / 0.8296 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.553e-06/0.5189, allocations: 0 / 0.8296 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.015e-05/0.519, allocations: 0 / 0.8296 GB, free: 1.77 MB / 0.5762 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.0004098/0.5194, allocations: 347.5 kB / 0.8299 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.5194, allocations: 11.97 kB / 0.8299 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.142e-05/0.5194, allocations: 192 / 0.8299 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.062e-05/0.5194, allocations: 31.36 kB / 0.83 GB, free: 1.367 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.837e-05/0.5195, allocations: 7.672 kB / 0.83 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.698e-05/0.5196, allocations: 165.9 kB / 0.8301 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.5196, allocations: 7.094 kB / 0.8301 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.5196, allocations: 3.281 kB / 0.8302 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.5198, allocations: 62.3 kB / 0.8302 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.5198, allocations: 0 / 0.8302 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.5198, allocations: 0 / 0.8302 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.5198, allocations: 0 / 0.8302 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.52, allocations: 42.64 kB / 0.8303 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003234/0.5203, allocations: 271.9 kB / 0.8305 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003328/0.5207, allocations: 64.11 kB / 0.8306 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.5208, allocations: 25.55 kB / 0.8306 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.5209, allocations: 83.73 kB / 0.8307 GB, free: 0.6758 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.482e-05/0.5209, allocations: 31.31 kB / 0.8307 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.5209, allocations: 0 / 0.8307 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0003951/0.5213, allocations: 100.9 kB / 0.8308 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.392e-05/0.5213, allocations: 51.41 kB / 0.8309 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.489e-05/0.5214, allocations: 102.5 kB / 0.8309 GB, free: 432 kB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.048e-05/0.5214, allocations: 26.41 kB / 0.831 GB, free: 400 kB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.903e-05/0.5214, allocations: 80.84 kB / 0.8311 GB, free: 316 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.353e-05/0.5214, allocations: 5.359 kB / 0.8311 GB, free: 312 kB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.392e-05/0.5214, allocations: 20.91 kB / 0.8311 GB, free: 292 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.316e-05/0.5215, allocations: 323.4 kB / 0.8314 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.836e-05/0.5216, allocations: 19.14 kB / 0.8314 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.744e-05/0.5217, allocations: 21.28 kB / 0.8314 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/0.5219, allocations: 41.34 kB / 0.8315 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5219, allocations: 0 / 0.8315 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002344/0.5221, allocations: 85.8 kB / 0.8315 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.5221, allocations: 11.02 kB / 0.8316 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.5221, allocations: 0 / 0.8316 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.721e-05/0.5222, allocations: 0.6094 kB / 0.8316 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.23e-05/0.5222, allocations: 8.594 kB / 0.8316 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.5223, allocations: 1.281 kB / 0.8316 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.143e-05/0.5223, allocations: 12.48 kB / 0.8316 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.772e-06/0.5223, allocations: 4.734 kB / 0.8316 GB, free: 15.88 MB / 0.5919 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.0001002/0.5224, allocations: 119.4 kB / 0.8317 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.5224, allocations: 1.531 kB / 0.8317 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002902/0.5227, allocations: 83.97 kB / 0.8318 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.5227, allocations: 0 / 0.8318 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.5227, allocations: 0 / 0.8318 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.5227, allocations: 0.5625 kB / 0.8318 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/0.5229, allocations: 167.7 kB / 0.8319 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.5229, allocations: 0 / 0.8319 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.527e-05/0.523, allocations: 15.83 kB / 0.832 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.523, allocations: 0 / 0.832 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.523, allocations: 2.328 kB / 0.832 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.523, allocations: 0 / 0.832 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.523, allocations: 2.125 kB / 0.832 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.5233, allocations: 175.8 kB / 0.8321 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.733e-05/0.5234, allocations: 88.17 kB / 0.8322 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.5234, allocations: 0.7031 kB / 0.8322 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.568e-05/0.5235, allocations: 8.594 kB / 0.8322 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.604e-05/0.5235, allocations: 6.25 kB / 0.8322 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.5235, allocations: 2.656 kB / 0.8322 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 4.735e-05/0.5236, allocations: 83.22 kB / 0.8323 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.5236, allocations: 0 / 0.8323 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002228/0.5238, allocations: 12.75 kB / 0.8323 GB, free: 15.17 MB / 0.5919 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.0006094/0.5244, allocations: 0.7089 MB / 0.833 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0002327/0.5246, allocations: 46.64 kB / 0.8331 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.5246, allocations: 1.094 kB / 0.8331 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 9.949e-05/0.5247, allocations: 28.81 kB / 0.8331 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.525, allocations: 3.188 kB / 0.8331 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004721/0.5255, allocations: 147.1 kB / 0.8332 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.5258, allocations: 0.677 MB / 0.8339 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 2.758e-05/0.5258, allocations: 3.422 kB / 0.8339 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.148e-05/0.5258, allocations: 19.47 kB / 0.8339 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of SimCode: time 2.81e-07/0.5258, allocations: 2.625 kB / 0.8339 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01749/0.5433, allocations: 1.632 MB / 0.8355 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.2/8.744, allocations: 10.88 kB / 0.8355 GB, free: 13.2 MB / 0.5919 GB " [Timeout remaining time 651] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.791110511985607] Failed to read output from testmodel.py, exit status != 0: 8.86789008002961 8.892305754 8.369061301 Calling exit ...