Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.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.001352/0.001352, 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.001554/0.001554, allocations: 209.7 kB / 22.24 MB, free: 3.57 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.9862/0.9862, allocations: 230.6 MB / 256 MB, free: 9.582 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.8244/0.8244, allocations: 203.8 MB / 0.5042 GB, free: 10.46 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.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_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.001121/0.001121, allocations: 70.47 kB / 0.7182 GB, free: 3.996 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5382/0.5394, allocations: 102 MB / 0.8178 GB, free: 1.039 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001375/0.5407, allocations: 0.6015 MB / 0.8184 GB, free: 0.6641 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002686/0.541, allocations: 44.62 kB / 0.8185 GB, free: 0.6367 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.748e-05/0.541, allocations: 3.938 kB / 0.8185 GB, free: 0.6328 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.677e-05/0.541, allocations: 2.281 kB / 0.8185 GB, free: 0.6328 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.472e-06/0.5411, allocations: 0 / 0.8185 GB, free: 0.6328 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.5413, allocations: 6.203 kB / 0.8185 GB, free: 0.6328 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 4.777e-05/0.5413, allocations: 9.328 kB / 0.8185 GB, free: 0.625 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.26e-05/0.5414, allocations: 6.75 kB / 0.8185 GB, free: 0.6211 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.683e-05/0.5414, allocations: 0.5625 kB / 0.8185 GB, free: 0.6211 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.519e-05/0.5414, allocations: 9.609 kB / 0.8185 GB, free: 0.6133 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.5414, allocations: 3.719 kB / 0.8185 GB, free: 0.6133 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 8.336e-05/0.5415, allocations: 12.14 kB / 0.8185 GB, free: 0.6055 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.086e-05/0.5415, allocations: 2.375 kB / 0.8185 GB, free: 0.6055 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 1.602e-05/0.5416, allocations: 0 / 0.8185 GB, free: 0.6055 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.392e-05/0.5416, allocations: 10.73 kB / 0.8185 GB, free: 0.6055 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.5416, allocations: 0 / 0.8185 GB, free: 0.6055 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5417, allocations: 0 / 0.8185 GB, free: 0.6055 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.5417, allocations: 0 / 0.8185 GB, free: 0.6055 MB / 0.6042 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.0002038/0.5419, allocations: 242.7 kB / 0.8188 GB, free: 352 kB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.5419, allocations: 11.81 kB / 0.8188 GB, free: 352 kB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.232e-05/0.5419, allocations: 30.75 kB / 0.8188 GB, free: 312 kB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.662e-05/0.5419, allocations: 4.891 kB / 0.8188 GB, free: 308 kB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.313e-05/0.542, allocations: 104.2 kB / 0.8189 GB, free: 180 kB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.542, allocations: 3.875 kB / 0.8189 GB, free: 180 kB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.782e-06/0.542, allocations: 384 / 0.8189 GB, free: 180 kB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.505e-05/0.5421, allocations: 36.34 kB / 0.8189 GB, free: 144 kB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.5421, allocations: 7.875 kB / 0.8189 GB, free: 136 kB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.5421, allocations: 3.938 kB / 0.819 GB, free: 132 kB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.5421, allocations: 4 kB / 0.819 GB, free: 128 kB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.813e-05/0.5421, allocations: 5.203 kB / 0.819 GB, free: 128 kB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001103/0.5423, allocations: 121.4 kB / 0.8191 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.855e-05/0.5423, allocations: 18.59 kB / 0.8191 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.859e-05/0.5423, allocations: 11.47 kB / 0.8191 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001406/0.5425, allocations: 10.91 kB / 0.8191 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.5425, allocations: 31.27 kB / 0.8191 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.5425, allocations: 0 / 0.8191 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0001334/0.5426, allocations: 45.27 kB / 0.8192 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.5427, allocations: 59.53 kB / 0.8192 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.159e-05/0.5427, allocations: 92.91 kB / 0.8193 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.5427, allocations: 25.7 kB / 0.8194 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.047e-05/0.5427, allocations: 80.14 kB / 0.8194 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.5427, allocations: 0.6094 kB / 0.8194 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-05/0.5428, allocations: 15.22 kB / 0.8194 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002287/0.543, allocations: 315.8 kB / 0.8198 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.711e-05/0.543, allocations: 10.48 kB / 0.8198 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.177e-06/0.543, allocations: 0.9062 kB / 0.8198 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.418e-05/0.543, allocations: 17.52 kB / 0.8198 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.543, allocations: 4.062 kB / 0.8198 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.74e-05/0.5431, allocations: 38.69 kB / 0.8198 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.5431, allocations: 5.031 kB / 0.8198 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.5431, allocations: 3.938 kB / 0.8198 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.5431, allocations: 2.484 kB / 0.8198 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.832e-05/0.5432, allocations: 5.203 kB / 0.8198 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.5432, allocations: 0 / 0.8198 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.938e-06/0.5432, allocations: 0.75 kB / 0.8198 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-06/0.5432, allocations: 0 / 0.8198 GB, free: 15.18 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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.397e-05/0.5433, allocations: 116.8 kB / 0.8199 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.528e-06/0.5433, allocations: 3.953 kB / 0.82 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.095e-05/0.5434, allocations: 54.88 kB / 0.82 GB, free: 15 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.5434, allocations: 1.312 kB / 0.82 GB, free: 15 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.5434, allocations: 0 / 0.82 GB, free: 15 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.5434, allocations: 2.25 kB / 0.82 GB, free: 15 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.829e-05/0.5434, allocations: 125.5 kB / 0.8201 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.5434, allocations: 5.031 kB / 0.8201 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.457e-05/0.5434, allocations: 5.266 kB / 0.8201 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.5435, allocations: 0 / 0.8201 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.5435, allocations: 3.969 kB / 0.8201 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5435, allocations: 4.75 kB / 0.8201 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.5435, allocations: 1.062 kB / 0.8201 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.044e-05/0.5435, allocations: 65.59 kB / 0.8202 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.19e-06/0.5435, allocations: 4.719 kB / 0.8202 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.036e-05/0.5435, allocations: 4.734 kB / 0.8202 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.419e-06/0.5435, allocations: 0 / 0.8202 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.563e-05/0.5436, allocations: 1.547 kB / 0.8202 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.5436, allocations: 2.969 kB / 0.8202 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.849e-05/0.5436, allocations: 75.28 kB / 0.8203 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5436, allocations: 0 / 0.8203 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001242/0.5437, allocations: 10.94 kB / 0.8203 GB, free: 14.67 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,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 (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.0002684/0.544, allocations: 0.5999 MB / 0.8209 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 7.508e-05/0.544, allocations: 10.88 kB / 0.8209 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.544, allocations: 0 / 0.8209 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.126e-05/0.5441, allocations: 9.016 kB / 0.8209 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.493e-05/0.5442, allocations: 2.516 kB / 0.8209 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002475/0.5444, allocations: 119.6 kB / 0.821 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.647e-05/0.5444, allocations: 60.58 kB / 0.8211 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.062e-05/0.5444, allocations: 0 / 0.8211 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.962e-05/0.5445, allocations: 10.16 kB / 0.8211 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of SimCode: time 4.01e-07/0.5445, allocations: 0 / 0.8211 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01602/0.5605, allocations: 1.567 MB / 0.8226 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.591/7.151, allocations: 7.438 kB / 0.8226 GB, free: 13.02 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.178074312862009] Failed to read output from testmodel.py, exit status != 0: 7.227043893188238 7.241014513 6.69685057 Calling exit ...