Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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) 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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_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.001033/0.001033, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001425/0.001425, allocations: 172.7 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.317/1.317, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.407/2.407, allocations: 409.4 MB / 0.684 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004348/0.0004349, allocations: 12 kB / 0.8378 GB, free: 6.551 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5921/0.5926, allocations: 146.8 MB / 0.9812 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006429/0.5933, allocations: 309.6 kB / 0.9814 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002147/0.5935, allocations: 43.91 kB / 0.9815 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.747e-06/0.5935, allocations: 0 / 0.9815 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.078e-05/0.5936, allocations: 0 / 0.9815 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.57e-06/0.5936, allocations: 4 kB / 0.9815 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000159/0.5937, allocations: 11.97 kB / 0.9815 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 3.826e-05/0.5938, allocations: 0 / 0.9815 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.567e-05/0.5938, allocations: 4 kB / 0.9815 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.77e-05/0.5939, allocations: 7.938 kB / 0.9815 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 2.647e-05/0.5939, allocations: 0 / 0.9815 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.5939, allocations: 0 / 0.9815 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.519e-05/0.594, allocations: 8 kB / 0.9815 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.71e-06/0.594, allocations: 0 / 0.9815 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.246e-05/0.594, allocations: 29.69 kB / 0.9816 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 5.469e-05/0.5941, allocations: 11.94 kB / 0.9816 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.5941, allocations: 4 kB / 0.9816 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.043e-06/0.5941, allocations: 0 / 0.9816 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.5941, allocations: 0 / 0.9816 GB, free: 5.844 MB / 0.7325 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.000293/0.5944, allocations: 311.4 kB / 0.9819 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.5945, allocations: 8.031 kB / 0.9819 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.5945, allocations: 34.56 kB / 0.9819 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.105e-05/0.5945, allocations: 0 / 0.9819 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.5946, allocations: 159.1 kB / 0.9821 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.5947, allocations: 0 / 0.9821 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/0.5947, allocations: 0 / 0.9821 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.5948, allocations: 49.58 kB / 0.9821 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.5948, allocations: 0 / 0.9821 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.5948, allocations: 0 / 0.9821 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.5948, allocations: 3.938 kB / 0.9821 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.358e-05/0.5949, allocations: 4 kB / 0.9821 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001637/0.595, allocations: 157.6 kB / 0.9823 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 4.687e-05/0.5951, allocations: 22.56 kB / 0.9823 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.689e-05/0.5951, allocations: 8.859 kB / 0.9823 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001708/0.5953, allocations: 85.11 kB / 0.9824 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.5953, allocations: 34.56 kB / 0.9824 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.5953, allocations: 0 / 0.9824 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001411/0.5955, allocations: 45.64 kB / 0.9824 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.5955, allocations: 51.41 kB / 0.9825 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.564e-05/0.5956, allocations: 93.86 kB / 0.9826 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.5956, allocations: 29.83 kB / 0.9826 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.245e-05/0.5956, allocations: 80.14 kB / 0.9827 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.5956, allocations: 0 / 0.9827 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-06/0.5957, allocations: 0 / 0.9827 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.5958, allocations: 314.8 kB / 0.983 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.177e-06/0.5958, allocations: 4 kB / 0.983 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.446e-06/0.5958, allocations: 3.938 kB / 0.983 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.955e-05/0.5958, allocations: 8 kB / 0.983 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.5958, allocations: 0 / 0.983 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.376e-05/0.5959, allocations: 37.77 kB / 0.983 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.5959, allocations: 9.391 kB / 0.9831 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.5959, allocations: 0 / 0.9831 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.5959, allocations: 4 kB / 0.9831 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.211e-05/0.596, allocations: 3.953 kB / 0.9831 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.596, allocations: 0 / 0.9831 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.52e-05/0.596, allocations: 6.25 kB / 0.9831 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-06/0.596, allocations: 0 / 0.9831 GB, free: 4.062 MB / 0.7325 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.167e-05/0.5961, allocations: 117.8 kB / 0.9832 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.152e-06/0.5961, allocations: 0 / 0.9832 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.355e-05/0.5962, allocations: 56.64 kB / 0.9832 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.5962, allocations: 0 / 0.9832 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.5962, allocations: 3.953 kB / 0.9832 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.5962, allocations: 4 kB / 0.9832 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.783e-05/0.5963, allocations: 145.7 kB / 0.9834 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.5964, allocations: 0 / 0.9834 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.293e-05/0.5964, allocations: 7.938 kB / 0.9834 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.5964, allocations: 0 / 0.9834 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.5964, allocations: 8.031 kB / 0.9834 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.5964, allocations: 0 / 0.9834 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.5964, allocations: 0 / 0.9834 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.344e-05/0.5965, allocations: 73.02 kB / 0.9835 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 2.812e-05/0.5965, allocations: 77.11 kB / 0.9835 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.759e-06/0.5965, allocations: 0 / 0.9835 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.071e-05/0.5966, allocations: 0 / 0.9835 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.59e-05/0.5966, allocations: 3.984 kB / 0.9835 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.5966, allocations: 8.031 kB / 0.9835 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.389e-05/0.5966, allocations: 79.28 kB / 0.9836 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5966, allocations: 0 / 0.9836 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001905/0.5968, allocations: 7.953 kB / 0.9836 GB, free: 3.383 MB / 0.7325 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 (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.000344/0.5972, allocations: 0.5969 MB / 0.9842 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 5.978e-05/0.5973, allocations: 11.94 kB / 0.9842 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.5973, allocations: 0 / 0.9842 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.497e-05/0.5973, allocations: 8 kB / 0.9842 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.5974, allocations: 5.016 kB / 0.9842 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002626/0.5977, allocations: 108.4 kB / 0.9843 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002091/0.5979, allocations: 0.6731 MB / 0.985 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.309e-05/0.5979, allocations: 8.062 kB / 0.985 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.563e-05/0.5979, allocations: 11.44 kB / 0.985 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.598, allocations: 0 / 0.985 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009991/0.608, allocations: 0.8782 MB / 0.9859 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/0.6081, allocations: 192.2 kB / 0.9861 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/2.282, allocations: 0 / 0.9861 GB, free: 0.8945 MB / 0.7325 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat does not exist to compare? outputFormat=mat