Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 107.6 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002463/0.002463, allocations: 291.2 kB / 303 MB, free: 9.496 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.238/1.238, allocations: 180.9 MB / 0.5261 GB, free: 14.64 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002782/0.002782, allocations: 102.4 kB / 0.7248 GB, free: 40.11 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1777, allocations: 94.16 MB / 0.8168 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001736/0.1794, allocations: 0.5782 MB / 0.8173 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002768/0.1797, allocations: 47.86 kB / 0.8174 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.11e-05/0.1797, allocations: 7.938 kB / 0.8174 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.298e-05/0.1797, allocations: 3.938 kB / 0.8174 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.75e-06/0.1797, allocations: 0 / 0.8174 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002278/0.18, allocations: 15.98 kB / 0.8174 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.821e-05/0.18, allocations: 3.984 kB / 0.8174 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.268e-05/0.18, allocations: 0 / 0.8174 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.76e-05/0.1801, allocations: 7.938 kB / 0.8174 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.284e-05/0.1801, allocations: 4 kB / 0.8174 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.077e-06/0.1801, allocations: 0 / 0.8174 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.191e-05/0.1802, allocations: 7.984 kB / 0.8174 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.949e-06/0.1802, allocations: 8 kB / 0.8174 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.957e-05/0.1802, allocations: 4 kB / 0.8174 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.684e-05/0.1803, allocations: 11.97 kB / 0.8174 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1803, allocations: 0 / 0.8174 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1803, allocations: 0 / 0.8174 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.1803, allocations: 3.938 kB / 0.8174 GB, free: 4.59 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003597/0.1807, allocations: 322.2 kB / 0.8178 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1807, allocations: 8.031 kB / 0.8178 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.657e-05/0.1807, allocations: 30.75 kB / 0.8178 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.645e-05/0.1808, allocations: 8.922 kB / 0.8178 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.1809, allocations: 164.4 kB / 0.818 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.414e-06/0.1809, allocations: 384 / 0.818 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.1809, allocations: 384 / 0.818 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.181, allocations: 30.27 kB / 0.818 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.181, allocations: 3.938 kB / 0.818 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.163e-06/0.181, allocations: 0 / 0.818 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.181, allocations: 0 / 0.818 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.874e-05/0.1811, allocations: 11.98 kB / 0.818 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001569/0.1812, allocations: 149.7 kB / 0.8181 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 6.574e-05/0.1813, allocations: 26.58 kB / 0.8182 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.118e-05/0.1813, allocations: 8.844 kB / 0.8182 GB, free: 3.68 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001607/0.1815, allocations: 81.17 kB / 0.8183 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.1815, allocations: 30.56 kB / 0.8183 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.1815, allocations: 0 / 0.8183 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001628/0.1817, allocations: 53.52 kB / 0.8183 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.1817, allocations: 59.53 kB / 0.8184 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.519e-05/0.1817, allocations: 89.86 kB / 0.8185 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.1818, allocations: 25.7 kB / 0.8185 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.255e-05/0.1818, allocations: 80.14 kB / 0.8186 GB, free: 3.203 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.1818, allocations: 4 kB / 0.8186 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.118e-05/0.1819, allocations: 13.72 kB / 0.8186 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.182, allocations: 314.8 kB / 0.8189 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.076e-05/0.182, allocations: 3.938 kB / 0.8189 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.012e-05/0.182, allocations: 8 kB / 0.8189 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.114e-05/0.1821, allocations: 12.86 kB / 0.8189 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1821, allocations: 0 / 0.8189 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.461e-05/0.1821, allocations: 41.64 kB / 0.819 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1821, allocations: 11.98 kB / 0.819 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.1821, allocations: 3.938 kB / 0.819 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.1822, allocations: 3.938 kB / 0.819 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.672e-05/0.1822, allocations: 7.984 kB / 0.819 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1822, allocations: 3.984 kB / 0.819 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.297e-05/0.1822, allocations: 4.094 kB / 0.819 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-06/0.1822, allocations: 0 / 0.819 GB, free: 2.754 MB / 0.5606 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 (n,fac) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.604e-05/0.1823, allocations: 105.8 kB / 0.8191 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.1823, allocations: 4 kB / 0.8191 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.865e-05/0.1824, allocations: 48.75 kB / 0.8191 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1824, allocations: 4 kB / 0.8191 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.1824, allocations: 3.938 kB / 0.8192 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1824, allocations: 0 / 0.8192 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.1826, allocations: 153.7 kB / 0.8193 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1826, allocations: 0 / 0.8193 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.193e-05/0.1826, allocations: 4 kB / 0.8193 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1826, allocations: 0 / 0.8193 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.1826, allocations: 3.938 kB / 0.8193 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.1826, allocations: 4 kB / 0.8193 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1826, allocations: 0 / 0.8193 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.777e-05/0.1827, allocations: 65.31 kB / 0.8194 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.111e-05/0.1827, allocations: 81.14 kB / 0.8194 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.1827, allocations: 3.938 kB / 0.8195 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.069e-05/0.1828, allocations: 0 / 0.8195 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.145e-05/0.1828, allocations: 7.984 kB / 0.8195 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-06/0.1828, allocations: 0 / 0.8195 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.145e-05/0.1828, allocations: 75.28 kB / 0.8195 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.1828, allocations: 0 / 0.8195 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002008/0.183, allocations: 7.938 kB / 0.8195 GB, free: 2.094 MB / 0.5606 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,n) * Number of discrete states: 0 () * Number of clocked 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 (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.0004534/0.1835, allocations: 0.6085 MB / 0.8201 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.686e-05/0.1835, allocations: 12 kB / 0.8201 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.1835, allocations: 0 / 0.8201 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.951e-05/0.1836, allocations: 11.92 kB / 0.8202 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.1837, allocations: 2.5 kB / 0.8202 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003023/0.184, allocations: 126.7 kB / 0.8203 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.1843, allocations: 0.6768 MB / 0.8209 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.134e-05/0.1843, allocations: 0 / 0.8209 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.29e-05/0.1844, allocations: 11.44 kB / 0.821 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of SimCode: time 3.01e-07/0.1844, allocations: 0 / 0.821 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02308/0.2074, allocations: 1.088 MB / 0.822 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.975/8.183, allocations: 18.94 kB / 0.822 GB, free: 15.56 MB / 0.5762 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.306751037947834] Failed to read output from testmodel.py, exit status != 0: 8.250249492004514 8.277801285 8.09220729 Calling exit ...