Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 72.5 kB / 19.92 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 173.9 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8909/0.8909, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.5623/0.5623, allocations: 114 MB / 373.9 MB, free: 8.719 MB / 346.7 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 0.5542 GB, free: 2.793 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.497e-05/1.617e-05, allocations: 8.609 kB / 0.5542 GB, free: 2.785 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.001871/0.001888, allocations: 1.522 MB / 0.5557 GB, free: 1.254 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.000305/0.002193, allocations: 123.6 kB / 0.5558 GB, free: 1.133 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.702e-05/0.00223, allocations: 0 / 0.5558 GB, free: 1.133 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 2.87e-05/0.002258, allocations: 0 / 0.5558 GB, free: 1.133 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 3.737e-05/0.002296, allocations: 3.938 kB / 0.5558 GB, free: 1.129 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.002533, allocations: 27.91 kB / 0.5558 GB, free: 1.102 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 6.582e-05/0.002598, allocations: 27.92 kB / 0.5559 GB, free: 1.074 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 8.827e-05/0.002687, allocations: 11.98 kB / 0.5559 GB, free: 1.062 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 5.224e-05/0.002739, allocations: 8 kB / 0.5559 GB, free: 1.055 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 4.571e-05/0.002785, allocations: 27.91 kB / 0.5559 GB, free: 1.027 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 1.326e-05/0.002798, allocations: 0 / 0.5559 GB, free: 1.027 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 5.472e-05/0.002853, allocations: 15.98 kB / 0.5559 GB, free: 1.012 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 1.044e-05/0.002863, allocations: 0 / 0.5559 GB, free: 1.012 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 1.877e-05/0.002882, allocations: 15.92 kB / 0.5559 GB, free: 0.9961 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.002989, allocations: 43.81 kB / 0.556 GB, free: 0.9531 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.002991, allocations: 7.938 kB / 0.556 GB, free: 0.9453 MB / 0.5105 GB Notification: Performance of FrontEnd: time 7.51e-07/0.002992, allocations: 0 / 0.556 GB, free: 0.9453 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.537e-06/0.002996, allocations: 0 / 0.556 GB, free: 0.9453 MB / 0.5105 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.0003375/0.003333, allocations: 262.3 kB / 0.5562 GB, free: 0.6562 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.003371, allocations: 12.62 kB / 0.5563 GB, free: 0.6445 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.68e-05/0.003398, allocations: 30.75 kB / 0.5563 GB, free: 0.6055 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.351e-05/0.003421, allocations: 8.938 kB / 0.5563 GB, free: 0.5977 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.28e-05/0.003494, allocations: 113.7 kB / 0.5564 GB, free: 472 kB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.003513, allocations: 4.375 kB / 0.5564 GB, free: 468 kB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.336e-06/0.003521, allocations: 4.359 kB / 0.5564 GB, free: 464 kB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001219/0.003643, allocations: 54.23 kB / 0.5565 GB, free: 404 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.00365, allocations: 192 / 0.5565 GB, free: 404 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.00366, allocations: 4.375 kB / 0.5565 GB, free: 400 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.003665, allocations: 4.125 kB / 0.5565 GB, free: 396 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.003769, allocations: 47.89 kB / 0.5565 GB, free: 348 kB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000294/0.004063, allocations: 224 kB / 0.5567 GB, free: 80 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002023/0.004265, allocations: 58.53 kB / 0.5568 GB, free: 12 kB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.19e-05/0.004327, allocations: 28.89 kB / 0.5568 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 7.543e-05/0.004403, allocations: 11.88 kB / 0.5568 GB, free: 15.97 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.004419, allocations: 30.56 kB / 0.5569 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.00442, allocations: 4 kB / 0.5569 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0002246/0.004645, allocations: 93.62 kB / 0.5569 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.004673, allocations: 55.34 kB / 0.557 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.441e-05/0.004727, allocations: 101.9 kB / 0.5571 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.207e-06/0.004737, allocations: 25.7 kB / 0.5571 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.639e-05/0.004773, allocations: 84.12 kB / 0.5572 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.004789, allocations: 11.94 kB / 0.5572 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.488e-05/0.004813, allocations: 13.72 kB / 0.5572 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.242e-05/0.004886, allocations: 318.8 kB / 0.5575 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.553e-05/0.004931, allocations: 19.97 kB / 0.5575 GB, free: 15.16 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.845e-05/0.00497, allocations: 23.92 kB / 0.5576 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.404e-05/0.005054, allocations: 44.81 kB / 0.5576 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.005055, allocations: 0 / 0.5576 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001122/0.005168, allocations: 77.55 kB / 0.5577 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.005179, allocations: 12 kB / 0.5577 GB, free: 15 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.005184, allocations: 0.5156 kB / 0.5577 GB, free: 15 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.005195, allocations: 3.984 kB / 0.5577 GB, free: 15 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.101e-05/0.005236, allocations: 8 kB / 0.5577 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.005239, allocations: 0 / 0.5577 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.645e-05/0.005266, allocations: 7.984 kB / 0.5577 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-06/0.00527, allocations: 0 / 0.5577 GB, free: 14.98 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: 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 5.234e-05/0.005322, allocations: 117.8 kB / 0.5578 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.429e-05/0.005336, allocations: 11.86 kB / 0.5578 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001392/0.005476, allocations: 85.33 kB / 0.5579 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.005478, allocations: 3.984 kB / 0.5579 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.005481, allocations: 0 / 0.5579 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.005483, allocations: 0 / 0.5579 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.005588, allocations: 128.8 kB / 0.558 GB, free: 14.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.51e-07/0.005588, allocations: 0 / 0.558 GB, free: 14.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.398e-05/0.005622, allocations: 23.92 kB / 0.5581 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.005623, allocations: 0 / 0.5581 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.671e-06/0.005629, allocations: 0 / 0.5581 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.005629, allocations: 4 kB / 0.5581 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.00563, allocations: 0 / 0.5581 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001335/0.005764, allocations: 171.4 kB / 0.5582 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 9.859e-06/0.005774, allocations: 15.86 kB / 0.5583 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.458e-06/0.005783, allocations: 3.938 kB / 0.5583 GB, free: 14.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.904e-05/0.005822, allocations: 4 kB / 0.5583 GB, free: 14.35 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.005865, allocations: 7.984 kB / 0.5583 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.005868, allocations: 4 kB / 0.5583 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 2.797e-05/0.005896, allocations: 87.27 kB / 0.5584 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5e-08/0.005896, allocations: 0 / 0.5584 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001596/0.006055, allocations: 4 kB / 0.5584 GB, free: 14.25 MB / 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: 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.0003418/0.006397, allocations: 0.7085 MB / 0.5591 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.000128/0.006525, allocations: 39.95 kB / 0.5591 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.006527, allocations: 0 / 0.5591 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 4.898e-05/0.006576, allocations: 27.98 kB / 0.5591 GB, free: 13.44 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001774/0.006753, allocations: 7.984 kB / 0.5591 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000309/0.007062, allocations: 146.4 kB / 0.5593 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.04e-05/0.007103, allocations: 63.28 kB / 0.5593 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.827e-05/0.007121, allocations: 4 kB / 0.5593 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.088e-05/0.007152, allocations: 16.5 kB / 0.5593 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of SimCode: time 2.6e-07/0.007152, allocations: 4 kB / 0.5593 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01328/0.02043, allocations: 2.266 MB / 0.5616 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.286/7.306, allocations: 5.562 kB / 0.5616 GB, free: 11.02 MB / 0.5261 GB " [Timeout remaining time 653] (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.754609824158251] Failed to read output from testmodel.py, exit status != 0: 7.385303230024874 7.397934538 7.39244097 Calling exit ...