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.0007459/0.0007459, allocations: 109.9 kB / 18.93 MB, free: 1.27 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.000754/0.000754, allocations: 213.8 kB / 22.26 MB, free: 3.703 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 1.055/1.055, allocations: 230.6 MB / 256 MB, free: 9.82 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.8083/0.8083, allocations: 203.8 MB / 0.5042 GB, free: 10.7 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.001214/0.001214, allocations: 70.58 kB / 0.7183 GB, free: 4.297 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5499/0.5511, allocations: 102 MB / 0.8179 GB, free: 1.109 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001546/0.5527, allocations: 0.5986 MB / 0.8185 GB, free: 0.7383 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002598/0.5529, allocations: 48.08 kB / 0.8185 GB, free: 0.707 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.841e-05/0.5529, allocations: 0 / 0.8185 GB, free: 0.707 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.438e-05/0.553, allocations: 1.438 kB / 0.8185 GB, free: 0.707 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.544e-06/0.553, allocations: 4 kB / 0.8185 GB, free: 0.7031 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002561/0.5532, allocations: 11.03 kB / 0.8185 GB, free: 0.6992 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.522e-05/0.5533, allocations: 1.266 kB / 0.8185 GB, free: 0.6992 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.542e-05/0.5533, allocations: 7.453 kB / 0.8186 GB, free: 0.6953 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.767e-05/0.5533, allocations: 4 kB / 0.8186 GB, free: 0.6914 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.332e-05/0.5534, allocations: 1.094 kB / 0.8186 GB, free: 0.6914 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.264e-05/0.5534, allocations: 1.844 kB / 0.8186 GB, free: 0.6914 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.407e-05/0.5535, allocations: 17.17 kB / 0.8186 GB, free: 0.6836 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.198e-05/0.5535, allocations: 3.938 kB / 0.8186 GB, free: 0.6797 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.497e-05/0.5535, allocations: 0.6094 kB / 0.8186 GB, free: 0.6797 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.5536, allocations: 16.58 kB / 0.8186 GB, free: 0.6719 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.5536, allocations: 5.344 kB / 0.8186 GB, free: 0.668 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.104e-06/0.5536, allocations: 0 / 0.8186 GB, free: 0.668 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.5536, allocations: 0 / 0.8186 GB, free: 0.668 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.0002396/0.5539, allocations: 238.8 kB / 0.8188 GB, free: 420 kB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.5539, allocations: 10.84 kB / 0.8188 GB, free: 420 kB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.525e-05/0.5539, allocations: 31.5 kB / 0.8189 GB, free: 380 kB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.713e-05/0.554, allocations: 4.891 kB / 0.8189 GB, free: 376 kB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.012e-05/0.554, allocations: 103.8 kB / 0.819 GB, free: 248 kB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.554, allocations: 4.312 kB / 0.819 GB, free: 248 kB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.554, allocations: 8.375 kB / 0.819 GB, free: 240 kB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.5541, allocations: 29.78 kB / 0.819 GB, free: 208 kB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.5542, allocations: 3.938 kB / 0.819 GB, free: 204 kB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.5542, allocations: 0.6562 kB / 0.819 GB, free: 204 kB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.5542, allocations: 3.938 kB / 0.819 GB, free: 200 kB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.587e-05/0.5542, allocations: 8.25 kB / 0.819 GB, free: 196 kB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.991e-05/0.5543, allocations: 126.5 kB / 0.8192 GB, free: 32 kB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 4.927e-05/0.5544, allocations: 23.92 kB / 0.8192 GB, free: 4 kB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.221e-05/0.5544, allocations: 13.33 kB / 0.8192 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001672/0.5546, allocations: 7.5 kB / 0.8192 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.5546, allocations: 31.22 kB / 0.8192 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.753e-06/0.5546, allocations: 0 / 0.8192 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0001635/0.5548, allocations: 49.52 kB / 0.8193 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.5548, allocations: 51.41 kB / 0.8193 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.275e-05/0.5548, allocations: 94.78 kB / 0.8194 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.5548, allocations: 26.73 kB / 0.8194 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.95e-05/0.5548, allocations: 80.14 kB / 0.8195 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.5549, allocations: 2.375 kB / 0.8195 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.222e-05/0.5549, allocations: 13.47 kB / 0.8195 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.647e-05/0.555, allocations: 315.5 kB / 0.8198 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.37e-05/0.555, allocations: 6.969 kB / 0.8198 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.116e-06/0.555, allocations: 3.719 kB / 0.8198 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.459e-05/0.555, allocations: 17.56 kB / 0.8199 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.555, allocations: 0 / 0.8199 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.869e-05/0.5551, allocations: 38.78 kB / 0.8199 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.5551, allocations: 7.953 kB / 0.8199 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.5551, allocations: 3.938 kB / 0.8199 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.5551, allocations: 0 / 0.8199 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.956e-05/0.5552, allocations: 4.453 kB / 0.8199 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.5552, allocations: 0.6562 kB / 0.8199 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.368e-05/0.5552, allocations: 0 / 0.8199 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-06/0.5552, allocations: 8.016 kB / 0.8199 GB, free: 15.23 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 7.158e-05/0.5553, allocations: 117 kB / 0.82 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.141e-05/0.5553, allocations: 4.703 kB / 0.82 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.5554, allocations: 52.09 kB / 0.8201 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.5554, allocations: 0.6094 kB / 0.8201 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5554, allocations: 0 / 0.8201 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.5554, allocations: 0 / 0.8201 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.469e-05/0.5555, allocations: 123.4 kB / 0.8202 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.5555, allocations: 2.078 kB / 0.8202 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.959e-05/0.5555, allocations: 11.94 kB / 0.8202 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.5555, allocations: 0 / 0.8202 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.5555, allocations: 7.406 kB / 0.8202 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.5555, allocations: 0 / 0.8202 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5555, allocations: 1.031 kB / 0.8202 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.243e-05/0.5556, allocations: 58.64 kB / 0.8203 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-06/0.5556, allocations: 2.906 kB / 0.8203 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.054e-05/0.5556, allocations: 4.719 kB / 0.8203 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.39e-06/0.5556, allocations: 7.938 kB / 0.8203 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.314e-05/0.5557, allocations: 2.922 kB / 0.8203 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.5557, allocations: 4.594 kB / 0.8203 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.357e-05/0.5557, allocations: 82.28 kB / 0.8204 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4e-08/0.5557, allocations: 0 / 0.8204 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001308/0.5558, allocations: 3.594 kB / 0.8204 GB, free: 14.73 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.0003222/0.5561, allocations: 0.5993 MB / 0.821 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 8.344e-05/0.5562, allocations: 6.938 kB / 0.821 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.5562, allocations: 4 kB / 0.821 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.224e-05/0.5562, allocations: 10.39 kB / 0.821 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001082/0.5564, allocations: 3.672 kB / 0.821 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000279/0.5566, allocations: 117.4 kB / 0.8211 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001779/0.5568, allocations: 0.6719 MB / 0.8218 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.521e-05/0.5568, allocations: 5.438 kB / 0.8218 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.376e-05/0.5568, allocations: 8 kB / 0.8218 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of SimCode: time 3.81e-07/0.5568, allocations: 0 / 0.8218 GB, free: 13.28 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01583/0.5727, allocations: 1.168 MB / 0.8229 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.598/7.17, allocations: 1.875 kB / 0.8229 GB, free: 12.88 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 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.367809921037406] Failed to read output from testmodel.py, exit status != 0: 7.248519853921607 7.266256427 6.7092376080000005 Calling exit ...