Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8824/0.8824, allocations: 141.8 MB / 149.3 MB, free: 9.215 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 183.8 kB / 182.2 MB, free: 9.465 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.686/1.686, allocations: 221.5 MB / 436.4 MB, free: 13.36 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 88.11 kB / 0.5074 GB, free: 10.19 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001998/0.001999, allocations: 283.5 kB / 0.5889 GB, free: 54.7 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.693e-05/2.702e-05, allocations: 8 kB / 0.6766 GB, free: 12.75 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5143/0.5144, allocations: 82.76 MB / 0.7575 GB, free: 32.03 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1528/0.6672, allocations: 107.2 MB / 0.8622 GB, free: 4.672 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.6676, allocations: 75.95 kB / 0.8623 GB, free: 4.598 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.002134/0.6697, allocations: 0.8309 MB / 0.8631 GB, free: 3.766 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.044e-06/0.6698, allocations: 0 / 0.8631 GB, free: 3.766 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.186e-06/0.6698, allocations: 4 kB / 0.8631 GB, free: 3.762 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003533/0.6701, allocations: 334.5 kB / 0.8634 GB, free: 3.391 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.6702, allocations: 8.031 kB / 0.8634 GB, free: 3.383 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.6702, allocations: 7.906 kB / 0.8634 GB, free: 3.375 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.6704, allocations: 159.1 kB / 0.8636 GB, free: 3.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.6704, allocations: 7.953 kB / 0.8636 GB, free: 3.172 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.6704, allocations: 0 / 0.8636 GB, free: 3.172 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002365/0.6707, allocations: 103.8 kB / 0.8637 GB, free: 3.07 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.6708, allocations: 61.55 kB / 0.8637 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.6708, allocations: 0 / 0.8637 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.6708, allocations: 0 / 0.8637 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.6709, allocations: 4 kB / 0.8637 GB, free: 3 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000221/0.6711, allocations: 146.2 kB / 0.8639 GB, free: 2.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.6713, allocations: 66.55 kB / 0.8639 GB, free: 2.746 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.906e-05/0.6713, allocations: 28.84 kB / 0.864 GB, free: 2.715 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003536/0.6717, allocations: 405.5 kB / 0.8643 GB, free: 2.227 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.6717, allocations: 42.45 kB / 0.8644 GB, free: 2.176 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.6717, allocations: 4 kB / 0.8644 GB, free: 2.172 MB / 0.5261 GB Notification: Performance of matching and sorting (n=11): time 0.0003458/0.6721, allocations: 93.84 kB / 0.8645 GB, free: 2.074 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.634e-05/0.6721, allocations: 51.41 kB / 0.8645 GB, free: 2.012 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.254e-05/0.6722, allocations: 88.98 kB / 0.8646 GB, free: 1.918 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.6722, allocations: 25.7 kB / 0.8646 GB, free: 1.887 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.874e-05/0.6723, allocations: 80.33 kB / 0.8647 GB, free: 1.801 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.181e-05/0.6723, allocations: 23.66 kB / 0.8647 GB, free: 1.777 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-06/0.6723, allocations: 4 kB / 0.8647 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.6724, allocations: 310.8 kB / 0.865 GB, free: 1.461 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.989e-05/0.6725, allocations: 23.98 kB / 0.8651 GB, free: 1.438 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.593e-05/0.6725, allocations: 16 kB / 0.8651 GB, free: 1.422 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.6726, allocations: 27.97 kB / 0.8651 GB, free: 1.395 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.6727, allocations: 0 / 0.8651 GB, free: 1.395 MB / 0.5261 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002322/0.6729, allocations: 97.53 kB / 0.8652 GB, free: 1.293 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.6729, allocations: 5.562 kB / 0.8652 GB, free: 1.289 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.6729, allocations: 0 / 0.8652 GB, free: 1.289 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.6729, allocations: 3.953 kB / 0.8652 GB, free: 1.285 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.6731, allocations: 19.98 kB / 0.8652 GB, free: 1.266 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.6731, allocations: 0 / 0.8652 GB, free: 1.266 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.776e-05/0.6731, allocations: 4 kB / 0.8652 GB, free: 1.262 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-06/0.6731, allocations: 4 kB / 0.8652 GB, free: 1.258 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001086/0.6732, allocations: 109.8 kB / 0.8653 GB, free: 1.145 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002603/0.6735, allocations: 101.4 kB / 0.8654 GB, free: 1.039 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.6735, allocations: 7.953 kB / 0.8654 GB, free: 1.031 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003284/0.6739, allocations: 118.3 kB / 0.8656 GB, free: 0.9102 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.6739, allocations: 4 kB / 0.8656 GB, free: 0.9062 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.6739, allocations: 0 / 0.8656 GB, free: 0.9062 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.6739, allocations: 4 kB / 0.8656 GB, free: 0.9023 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.674, allocations: 150.1 kB / 0.8657 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.674, allocations: 0 / 0.8657 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.147e-05/0.6741, allocations: 23.92 kB / 0.8657 GB, free: 0.6953 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.6741, allocations: 0 / 0.8657 GB, free: 0.6953 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.6741, allocations: 4 kB / 0.8657 GB, free: 0.6914 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.6742, allocations: 3.953 kB / 0.8657 GB, free: 0.6875 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6742, allocations: 0 / 0.8657 GB, free: 0.6875 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002587/0.6744, allocations: 117.5 kB / 0.8658 GB, free: 0.5547 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.958e-05/0.6745, allocations: 85.05 kB / 0.8659 GB, free: 464 kB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.6745, allocations: 3.984 kB / 0.8659 GB, free: 460 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.36e-05/0.6745, allocations: 0 / 0.8659 GB, free: 460 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.468e-05/0.6746, allocations: 7.953 kB / 0.8659 GB, free: 452 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-06/0.6746, allocations: 7.984 kB / 0.8659 GB, free: 444 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.642e-05/0.6746, allocations: 79.28 kB / 0.866 GB, free: 364 kB / 0.5261 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6746, allocations: 0 / 0.866 GB, free: 364 kB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001889/0.6748, allocations: 19.94 kB / 0.866 GB, free: 344 kB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0006547/0.6755, allocations: 0.6686 MB / 0.8667 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001141/0.6756, allocations: 55.92 kB / 0.8667 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.6756, allocations: 0 / 0.8667 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 4.131e-05/0.6757, allocations: 35.98 kB / 0.8668 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001152/0.6758, allocations: 6.391 kB / 0.8668 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003642/0.6761, allocations: 130.6 kB / 0.8669 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.6765, allocations: 0.6923 MB / 0.8676 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.806e-05/0.6766, allocations: 37.11 kB / 0.8676 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.627e-05/0.6766, allocations: 15.44 kB / 0.8676 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of SimCode: time 2.51e-07/0.6766, allocations: 4 kB / 0.8676 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02059/0.6972, allocations: 1.042 MB / 0.8687 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003071/0.6976, allocations: 168.8 kB / 0.8688 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.523/2.22, allocations: 0 / 0.8688 GB, free: 13.39 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)