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.0009647/0.0009644, allocations: 100.8 kB / 15.06 MB, free: 1.094 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.001417/0.001417, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002098/0.002098, allocations: 270.8 kB / 291.2 MB, free: 2.027 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.901/0.901, allocations: 144.6 MB / 487 MB, free: 7.207 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004612/0.000461, allocations: 14.7 kB / 0.5684 GB, free: 38.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2031, allocations: 83.09 MB / 0.6495 GB, free: 3.547 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.001681/0.2048, allocations: 1.218 MB / 0.6507 GB, free: 2.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002847/0.2051, allocations: 111.2 kB / 0.6508 GB, free: 2.215 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.158e-05/0.2051, allocations: 4 kB / 0.6508 GB, free: 2.211 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.639e-05/0.2052, allocations: 0 / 0.6508 GB, free: 2.211 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.193e-05/0.2052, allocations: 7.922 kB / 0.6508 GB, free: 2.203 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001603/0.2054, allocations: 19.92 kB / 0.6509 GB, free: 2.184 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.806e-05/0.2054, allocations: 19.97 kB / 0.6509 GB, free: 2.164 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.187e-05/0.2055, allocations: 4 kB / 0.6509 GB, free: 2.16 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.298e-05/0.2056, allocations: 16.55 kB / 0.6509 GB, free: 2.145 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.306e-05/0.2056, allocations: 11.98 kB / 0.6509 GB, free: 2.133 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.2056, allocations: 0.6562 kB / 0.6509 GB, free: 2.133 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.596e-05/0.2057, allocations: 7.984 kB / 0.6509 GB, free: 2.125 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.838e-06/0.2057, allocations: 8.438 kB / 0.6509 GB, free: 2.117 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.108e-05/0.2057, allocations: 30.2 kB / 0.651 GB, free: 2.082 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 5.974e-05/0.2058, allocations: 17.67 kB / 0.651 GB, free: 2.066 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.2058, allocations: 0 / 0.651 GB, free: 2.066 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2058, allocations: 4 kB / 0.651 GB, free: 2.062 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.267e-06/0.2058, allocations: 0 / 0.651 GB, free: 2.062 MB / 446.1 MB 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.0004475/0.2063, allocations: 342.8 kB / 0.6513 GB, free: 1.684 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.2063, allocations: 8.594 kB / 0.6513 GB, free: 1.676 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.588e-05/0.2063, allocations: 35.5 kB / 0.6513 GB, free: 1.633 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.408e-05/0.2064, allocations: 0 / 0.6513 GB, free: 1.633 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.939e-05/0.2065, allocations: 167 kB / 0.6515 GB, free: 1.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.2065, allocations: 9.641 kB / 0.6515 GB, free: 1.422 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.955e-06/0.2065, allocations: 0 / 0.6515 GB, free: 1.422 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.2067, allocations: 66.84 kB / 0.6516 GB, free: 1.352 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.751e-06/0.2067, allocations: 3.938 kB / 0.6516 GB, free: 1.348 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.2067, allocations: 4.656 kB / 0.6516 GB, free: 1.344 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2068, allocations: 7.938 kB / 0.6516 GB, free: 1.336 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.207, allocations: 51.39 kB / 0.6516 GB, free: 1.289 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003767/0.2073, allocations: 269.3 kB / 0.6519 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003188/0.2077, allocations: 68.88 kB / 0.652 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.893e-05/0.2078, allocations: 89.23 kB / 0.6521 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.2078, allocations: 35.31 kB / 0.6521 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.2078, allocations: 0.6562 kB / 0.6521 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003563/0.2082, allocations: 101.1 kB / 0.6522 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/0.2082, allocations: 55.41 kB / 0.6522 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.752e-05/0.2083, allocations: 102.5 kB / 0.6523 GB, free: 488 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.2083, allocations: 26.58 kB / 0.6524 GB, free: 456 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.589e-05/0.2084, allocations: 84.08 kB / 0.6524 GB, free: 368 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.391e-05/0.2084, allocations: 13.38 kB / 0.6525 GB, free: 356 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-06/0.2085, allocations: 0 / 0.6525 GB, free: 356 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.2086, allocations: 318.8 kB / 0.6528 GB, free: 28 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.2088, allocations: 27.58 kB / 0.6528 GB, free: 4 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.872e-05/0.2089, allocations: 27.97 kB / 0.6528 GB, free: 15.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.209, allocations: 20.61 kB / 0.6528 GB, free: 15.96 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.209, allocations: 0.5938 kB / 0.6528 GB, free: 15.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003869/0.2094, allocations: 83.47 kB / 0.6529 GB, free: 15.87 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2094, allocations: 5.25 kB / 0.6529 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2095, allocations: 0 / 0.6529 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.2095, allocations: 0 / 0.6529 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.2096, allocations: 16.77 kB / 0.6529 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.2096, allocations: 1.719 kB / 0.6529 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.339e-05/0.2097, allocations: 11.89 kB / 0.6529 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.2098, allocations: 4 kB / 0.6529 GB, free: 15.84 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * 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.0001001/0.2099, allocations: 118.9 kB / 0.6531 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.929e-05/0.2099, allocations: 4 kB / 0.6531 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003528/0.2103, allocations: 89.8 kB / 0.6531 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2103, allocations: 0 / 0.6531 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.2103, allocations: 4 kB / 0.6532 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.2104, allocations: 7.922 kB / 0.6532 GB, free: 15.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002327/0.2106, allocations: 165.6 kB / 0.6533 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.2106, allocations: 0 / 0.6533 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.2107, allocations: 17.05 kB / 0.6533 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2108, allocations: 0 / 0.6533 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.351e-06/0.2108, allocations: 4 kB / 0.6533 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.2108, allocations: 3.984 kB / 0.6533 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2108, allocations: 0 / 0.6533 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003789/0.2112, allocations: 184 kB / 0.6535 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.2112, allocations: 84.97 kB / 0.6536 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/0.2113, allocations: 3.938 kB / 0.6536 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.2114, allocations: 12.03 kB / 0.6536 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.655e-05/0.2115, allocations: 11.97 kB / 0.6536 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.2115, allocations: 4 kB / 0.6536 GB, free: 15.04 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.168e-05/0.2116, allocations: 75.28 kB / 0.6537 GB, free: 14.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2116, allocations: 4 kB / 0.6537 GB, free: 14.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002313/0.2118, allocations: 8 kB / 0.6537 GB, free: 14.95 MB / 462.1 MB 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 (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.0005188/0.2124, allocations: 0.7241 MB / 0.6544 GB, free: 14.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002192/0.2126, allocations: 51.95 kB / 0.6545 GB, free: 14.15 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2126, allocations: 4 kB / 0.6545 GB, free: 14.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.2127, allocations: 31.97 kB / 0.6545 GB, free: 14.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.2129, allocations: 4 kB / 0.6545 GB, free: 14.11 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003923/0.2133, allocations: 150.2 kB / 0.6547 GB, free: 13.92 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.2135, allocations: 0.6809 MB / 0.6553 GB, free: 13.21 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.846e-05/0.2136, allocations: 4 kB / 0.6553 GB, free: 13.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.564e-05/0.2136, allocations: 19.38 kB / 0.6553 GB, free: 13.19 MB / 462.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2136, allocations: 0 / 0.6553 GB, free: 13.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01146/0.2251, allocations: 1.279 MB / 0.6566 GB, free: 12.04 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002732/0.2254, allocations: 189.5 kB / 0.6568 GB, free: 11.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.078/2.303, allocations: 0.75 kB / 0.6568 GB, free: 11.79 MB / 462.1 MB (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/linux/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) Environment - environmentSimulation: