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.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004978/0.004978, allocations: 102.6 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 193.1 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.256/1.256, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002219/0.002219, allocations: 278.8 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8985/0.8985, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003008/0.003008, allocations: 100.1 kB / 0.681 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.1952, allocations: 86.97 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.003545/0.1988, allocations: 1.513 MB / 0.7674 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0005298/0.1994, allocations: 124.4 kB / 0.7675 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.838e-05/0.1995, allocations: 0 / 0.7675 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.934e-05/0.1995, allocations: 4 kB / 0.7675 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.69e-05/0.1996, allocations: 3.938 kB / 0.7675 GB, free: 7.305 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.1999, allocations: 27.91 kB / 0.7675 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.988e-05/0.2, allocations: 27.98 kB / 0.7676 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.2002, allocations: 16.2 kB / 0.7676 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.444e-05/0.2003, allocations: 8 kB / 0.7676 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.988e-05/0.2003, allocations: 19.91 kB / 0.7676 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.2004, allocations: 4 kB / 0.7676 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.871e-05/0.2005, allocations: 11.98 kB / 0.7676 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.177e-05/0.2005, allocations: 11.94 kB / 0.7676 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.2005, allocations: 11.88 kB / 0.7676 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001677/0.2007, allocations: 43.81 kB / 0.7677 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2007, allocations: 0 / 0.7677 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2007, allocations: 0 / 0.7677 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.2007, allocations: 0 / 0.7677 GB, free: 7.125 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005644/0.2013, allocations: 339.5 kB / 0.768 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.2013, allocations: 8.031 kB / 0.768 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.112e-05/0.2014, allocations: 42.73 kB / 0.7681 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.412e-05/0.2014, allocations: 4.938 kB / 0.7681 GB, free: 6.68 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.2016, allocations: 164.3 kB / 0.7682 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.2016, allocations: 4.375 kB / 0.7682 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.2017, allocations: 384 / 0.7682 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002357/0.2019, allocations: 66.2 kB / 0.7683 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.2019, allocations: 7.875 kB / 0.7683 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.2019, allocations: 0 / 0.7683 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.2019, allocations: 0 / 0.7683 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.2021, allocations: 47.95 kB / 0.7683 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004104/0.2026, allocations: 260.9 kB / 0.7686 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.2029, allocations: 58.53 kB / 0.7686 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.845e-05/0.203, allocations: 28.84 kB / 0.7687 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/0.2031, allocations: 85.09 kB / 0.7688 GB, free: 5.848 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/0.2031, allocations: 34.56 kB / 0.7688 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.2031, allocations: 0 / 0.7688 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.000383/0.2035, allocations: 89.62 kB / 0.7689 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.2036, allocations: 51.41 kB / 0.7689 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.469e-05/0.2037, allocations: 105.8 kB / 0.769 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.2037, allocations: 25.7 kB / 0.769 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.665e-05/0.2038, allocations: 88.14 kB / 0.7691 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.955e-05/0.2038, allocations: 7.891 kB / 0.7691 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.083e-05/0.2038, allocations: 21.72 kB / 0.7692 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.204, allocations: 314.8 kB / 0.7695 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.973e-05/0.2041, allocations: 27.91 kB / 0.7695 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.501e-05/0.2042, allocations: 15.98 kB / 0.7695 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/0.2043, allocations: 52.75 kB / 0.7696 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2043, allocations: 0 / 0.7696 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002064/0.2046, allocations: 73.66 kB / 0.7696 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.2046, allocations: 7.938 kB / 0.7696 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.2046, allocations: 0 / 0.7696 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.2046, allocations: 0 / 0.7696 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.041e-05/0.2047, allocations: 15.98 kB / 0.7696 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.2047, allocations: 3.938 kB / 0.7696 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.769e-05/0.2048, allocations: 11.98 kB / 0.7697 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.2048, allocations: 0 / 0.7697 GB, free: 4.848 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 (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 8.786e-05/0.2049, allocations: 118.4 kB / 0.7698 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.745e-05/0.2049, allocations: 0 / 0.7698 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002607/0.2052, allocations: 85.66 kB / 0.7699 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2052, allocations: 48 / 0.7699 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2052, allocations: 3.984 kB / 0.7699 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2052, allocations: 0 / 0.7699 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.2054, allocations: 169.5 kB / 0.77 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2054, allocations: 0 / 0.77 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.231e-05/0.2055, allocations: 11.98 kB / 0.77 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.2055, allocations: 0 / 0.77 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.2055, allocations: 4 kB / 0.77 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2055, allocations: 3.938 kB / 0.77 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2055, allocations: 7.984 kB / 0.77 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/0.2058, allocations: 167.5 kB / 0.7702 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.998e-05/0.2059, allocations: 77.11 kB / 0.7703 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.2059, allocations: 0 / 0.7703 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.467e-05/0.206, allocations: 7.984 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.305e-05/0.206, allocations: 11.98 kB / 0.7703 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.2061, allocations: 4 kB / 0.7703 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.566e-05/0.2061, allocations: 79.28 kB / 0.7704 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2061, allocations: 0 / 0.7704 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002267/0.2063, allocations: 8 kB / 0.7704 GB, free: 4.004 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.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.0006576/0.207, allocations: 0.7201 MB / 0.7711 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000242/0.2073, allocations: 47.95 kB / 0.7711 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2073, allocations: 4 kB / 0.7711 GB, free: 3.203 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.36e-05/0.2074, allocations: 23.97 kB / 0.7712 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.2077, allocations: 7.938 kB / 0.7712 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000473/0.2082, allocations: 153.6 kB / 0.7713 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/0.2085, allocations: 0.6729 MB / 0.772 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.011e-05/0.2085, allocations: 7.984 kB / 0.772 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/0.2085, allocations: 11.44 kB / 0.772 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of SimCode: time 4.21e-07/0.2086, allocations: 3.938 kB / 0.772 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01913/0.2277, allocations: 1.612 MB / 0.7736 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.969/7.197, allocations: 22.22 kB / 0.7736 GB, free: 0.7305 MB / 0.5606 GB (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 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)