Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_9_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.001027/0.001027, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001499/0.001499, allocations: 168.7 kB / 15.95 MB, free: 204 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.352/1.352, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.321/2.321, allocations: 390.4 MB / 0.6655 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.0003693, allocations: 12 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7409/0.7413, allocations: 142.3 MB / 0.9539 GB, free: 8.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006217/0.742, allocations: 322.1 kB / 0.9542 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000208/0.7422, allocations: 39.19 kB / 0.9542 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.029e-05/0.7422, allocations: 3.938 kB / 0.9542 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.217e-06/0.7422, allocations: 0 / 0.9542 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.192e-06/0.7423, allocations: 0.8438 kB / 0.9542 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001691/0.7424, allocations: 6.75 kB / 0.9542 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.712e-05/0.7425, allocations: 5.984 kB / 0.9542 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.955e-05/0.7425, allocations: 5.125 kB / 0.9542 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.424e-05/0.7425, allocations: 5.078 kB / 0.9542 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.469e-05/0.7426, allocations: 0.7812 kB / 0.9542 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.007e-05/0.7426, allocations: 1.062 kB / 0.9542 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.127e-05/0.7427, allocations: 8.156 kB / 0.9542 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.452e-06/0.7427, allocations: 0 / 0.9542 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.7427, allocations: 26.77 kB / 0.9543 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.757e-05/0.7428, allocations: 5.734 kB / 0.9543 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.7428, allocations: 0.9375 kB / 0.9543 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.232e-06/0.7428, allocations: 0 / 0.9543 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.7428, allocations: 4 kB / 0.9543 GB, free: 7.824 MB / 0.7169 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.0001856/0.743, allocations: 318.8 kB / 0.9546 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.743, allocations: 9.25 kB / 0.9546 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.601e-05/0.7431, allocations: 32.66 kB / 0.9546 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.988e-05/0.7431, allocations: 7.891 kB / 0.9546 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.818e-05/0.7431, allocations: 163.1 kB / 0.9548 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.7431, allocations: 0 / 0.9548 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.614e-06/0.7432, allocations: 1.406 kB / 0.9548 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.091e-05/0.7432, allocations: 32.53 kB / 0.9548 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.7433, allocations: 7.984 kB / 0.9548 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-06/0.7433, allocations: 1.375 kB / 0.9548 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.7433, allocations: 0 / 0.9548 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.072e-05/0.7433, allocations: 11.27 kB / 0.9548 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.46e-05/0.7434, allocations: 152.1 kB / 0.955 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4e-05/0.7435, allocations: 22.88 kB / 0.955 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.713e-05/0.7435, allocations: 11.33 kB / 0.955 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001228/0.7436, allocations: 83.39 kB / 0.9551 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.201e-05/0.7436, allocations: 31.94 kB / 0.9551 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.7436, allocations: 0 / 0.9551 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001243/0.7438, allocations: 46.22 kB / 0.9552 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.7438, allocations: 52.56 kB / 0.9552 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.794e-05/0.7438, allocations: 93.77 kB / 0.9553 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.7438, allocations: 26.89 kB / 0.9553 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.01e-05/0.7438, allocations: 80.27 kB / 0.9554 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.7439, allocations: 5.031 kB / 0.9554 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-06/0.7439, allocations: 0 / 0.9554 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.085e-05/0.7439, allocations: 315.7 kB / 0.9557 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.137e-05/0.7439, allocations: 9.234 kB / 0.9557 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.913e-06/0.7439, allocations: 2.344 kB / 0.9557 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.63e-05/0.744, allocations: 2.781 kB / 0.9557 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.744, allocations: 0 / 0.9557 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.861e-05/0.744, allocations: 37.58 kB / 0.9558 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.744, allocations: 9.562 kB / 0.9558 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.7441, allocations: 3.938 kB / 0.9558 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.7441, allocations: 3.984 kB / 0.9558 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.919e-05/0.7441, allocations: 7.031 kB / 0.9558 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.7441, allocations: 1.188 kB / 0.9558 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.258e-05/0.7442, allocations: 2.25 kB / 0.9558 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-06/0.7442, allocations: 1.062 kB / 0.9558 GB, free: 6.102 MB / 0.7169 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 4.207e-05/0.7442, allocations: 111 kB / 0.9559 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.931e-06/0.7442, allocations: 1.156 kB / 0.9559 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.346e-05/0.7443, allocations: 48.28 kB / 0.9559 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.7443, allocations: 0 / 0.9559 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.7443, allocations: 1.094 kB / 0.9559 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.7443, allocations: 0 / 0.9559 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.895e-05/0.7444, allocations: 155.6 kB / 0.9561 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.7444, allocations: 3.938 kB / 0.9561 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.23e-05/0.7444, allocations: 7.219 kB / 0.9561 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.7444, allocations: 5.031 kB / 0.9561 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.7444, allocations: 0 / 0.9561 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.7444, allocations: 1 kB / 0.9561 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.7444, allocations: 4.031 kB / 0.9561 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.62e-05/0.7445, allocations: 73.27 kB / 0.9562 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.42e-05/0.7445, allocations: 78.14 kB / 0.9563 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.778e-06/0.7445, allocations: 0.8125 kB / 0.9563 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.072e-05/0.7445, allocations: 1.062 kB / 0.9563 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.632e-05/0.7446, allocations: 0.9062 kB / 0.9563 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-06/0.7446, allocations: 5.422 kB / 0.9563 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.04e-05/0.7446, allocations: 79.31 kB / 0.9563 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7446, allocations: 0 / 0.9563 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002087/0.7448, allocations: 4.188 kB / 0.9563 GB, free: 5.465 MB / 0.7169 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.0002439/0.7451, allocations: 0.6031 MB / 0.9569 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.974e-05/0.7451, allocations: 14.16 kB / 0.9569 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.7451, allocations: 1.281 kB / 0.957 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.376e-05/0.7452, allocations: 3.031 kB / 0.957 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.7453, allocations: 10.12 kB / 0.957 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002337/0.7455, allocations: 110.1 kB / 0.9571 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.663e-05/0.7456, allocations: 0.6747 MB / 0.9577 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.367e-05/0.7456, allocations: 1.375 kB / 0.9577 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.658e-05/0.7457, allocations: 14 kB / 0.9577 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.7457, allocations: 4 kB / 0.9577 GB, free: 4 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01074/0.7564, allocations: 0.8702 MB / 0.9586 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000129/0.7566, allocations: 187.4 kB / 0.9588 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.622/2.378, allocations: 0 / 0.9588 GB, free: 3.359 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat does not exist to compare? outputFormat=mat