Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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.0007566/0.0007566, allocations: 101.5 kB / 18.95 MB, free: 1.184 MB / 13.93 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.0008478/0.0008478, allocations: 209.2 kB / 22.24 MB, free: 3.59 MB / 13.93 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.9371/0.9371, allocations: 230.6 MB / 256 MB, free: 9.586 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.797/0.797, allocations: 203.8 MB / 0.5042 GB, free: 10.45 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 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(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009032/0.0009032, allocations: 64.06 kB / 0.7182 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5222/0.5232, allocations: 102 MB / 0.8178 GB, free: 1.051 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002435/0.5256, allocations: 1.542 MB / 0.8193 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003685/0.526, allocations: 125.1 kB / 0.8194 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.576e-05/0.526, allocations: 0 / 0.8194 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.107e-05/0.526, allocations: 0.9844 kB / 0.8194 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.379e-05/0.5261, allocations: 5.156 kB / 0.8194 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002703/0.5263, allocations: 28.19 kB / 0.8195 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.081e-05/0.5264, allocations: 31.52 kB / 0.8195 GB, free: 15.87 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.5265, allocations: 14.77 kB / 0.8195 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.77e-05/0.5266, allocations: 9.375 kB / 0.8195 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.918e-05/0.5266, allocations: 23.67 kB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.5267, allocations: 3.281 kB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.667e-05/0.5267, allocations: 14.78 kB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.578e-05/0.5268, allocations: 5.688 kB / 0.8196 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.811e-05/0.5268, allocations: 7.312 kB / 0.8196 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.5269, allocations: 36.38 kB / 0.8196 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.5269, allocations: 3.938 kB / 0.8196 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.364e-06/0.527, allocations: 0 / 0.8196 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.527, allocations: 0 / 0.8196 GB, free: 15.81 MB / 0.6198 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.0004674/0.5274, allocations: 270.2 kB / 0.8199 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.5275, allocations: 14.53 kB / 0.8199 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.623e-05/0.5275, allocations: 31.45 kB / 0.8199 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.338e-05/0.5275, allocations: 7.938 kB / 0.8199 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.5276, allocations: 108.4 kB / 0.82 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.5277, allocations: 2.438 kB / 0.82 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.5277, allocations: 8 kB / 0.82 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.5279, allocations: 61.14 kB / 0.8201 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.5279, allocations: 3.938 kB / 0.8201 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.5279, allocations: 3.625 kB / 0.8201 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.5279, allocations: 0 / 0.8201 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.528, allocations: 43.88 kB / 0.8201 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003423/0.5284, allocations: 229.3 kB / 0.8203 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.5286, allocations: 60.61 kB / 0.8204 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.786e-05/0.5286, allocations: 24.16 kB / 0.8204 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 8.892e-05/0.5287, allocations: 5.188 kB / 0.8204 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.325e-05/0.5288, allocations: 33.17 kB / 0.8205 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.5288, allocations: 4 kB / 0.8205 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0002722/0.529, allocations: 97.27 kB / 0.8206 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/0.5291, allocations: 51.41 kB / 0.8206 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.417e-05/0.5291, allocations: 105.7 kB / 0.8207 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.5292, allocations: 25.7 kB / 0.8207 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.046e-05/0.5292, allocations: 88.48 kB / 0.8208 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.5292, allocations: 4.562 kB / 0.8208 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.5292, allocations: 19.31 kB / 0.8208 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.211e-05/0.5293, allocations: 316.1 kB / 0.8211 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.382e-05/0.5294, allocations: 19.86 kB / 0.8212 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.688e-05/0.5294, allocations: 17.3 kB / 0.8212 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.833e-05/0.5295, allocations: 48.86 kB / 0.8212 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5295, allocations: 0 / 0.8212 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001371/0.5297, allocations: 76.16 kB / 0.8213 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.5297, allocations: 8.062 kB / 0.8213 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.5297, allocations: 0.6562 kB / 0.8213 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.5297, allocations: 3.938 kB / 0.8213 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.262e-05/0.5297, allocations: 11.3 kB / 0.8213 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.5297, allocations: 4.641 kB / 0.8213 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.841e-05/0.5298, allocations: 10.39 kB / 0.8213 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.5298, allocations: 2.047 kB / 0.8213 GB, free: 14.22 MB / 0.6198 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 6.966e-05/0.5299, allocations: 117.3 kB / 0.8214 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.216e-05/0.5299, allocations: 5.969 kB / 0.8215 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001791/0.53, allocations: 87.77 kB / 0.8215 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.53, allocations: 3.938 kB / 0.8215 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.5301, allocations: 0 / 0.8215 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5301, allocations: 0.6094 kB / 0.8215 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.5302, allocations: 132.2 kB / 0.8217 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5302, allocations: 0 / 0.8217 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.806e-05/0.5302, allocations: 13.98 kB / 0.8217 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.5302, allocations: 2.172 kB / 0.8217 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.5302, allocations: 4 kB / 0.8217 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.5302, allocations: 0.7031 kB / 0.8217 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5302, allocations: 1.469 kB / 0.8217 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001574/0.5304, allocations: 173.3 kB / 0.8219 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.262e-06/0.5304, allocations: 6.344 kB / 0.8219 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.5304, allocations: 2.062 kB / 0.8219 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.178e-05/0.5304, allocations: 6.031 kB / 0.8219 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.5305, allocations: 9.391 kB / 0.8219 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.5305, allocations: 3.469 kB / 0.8219 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.298e-05/0.5305, allocations: 85.86 kB / 0.822 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.5305, allocations: 2 kB / 0.822 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001565/0.5307, allocations: 10.19 kB / 0.822 GB, free: 13.64 MB / 0.6198 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.0003981/0.5311, allocations: 0.7067 MB / 0.8227 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001533/0.5312, allocations: 40.91 kB / 0.8227 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.5312, allocations: 1.281 kB / 0.8227 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.713e-05/0.5313, allocations: 33.3 kB / 0.8227 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.5315, allocations: 9.609 kB / 0.8227 GB, free: 12.94 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003468/0.5318, allocations: 146.4 kB / 0.8229 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.452e-05/0.5319, allocations: 60.59 kB / 0.8229 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.335e-05/0.5319, allocations: 3.156 kB / 0.8229 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.442e-05/0.5319, allocations: 20.73 kB / 0.823 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of SimCode: time 8.42e-07/0.5319, allocations: 0 / 0.823 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01593/0.5479, allocations: 2.13 MB / 0.825 GB, free: 11.84 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.581/7.128, allocations: 5.031 kB / 0.825 GB, free: 11.83 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.023078157100827] Failed to read output from testmodel.py, exit status != 0: 7.205309684854001 7.219631484 6.689708834 Calling exit ...