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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 110 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001888/0.001888, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.073/1.073, allocations: 175.8 MB / 478.4 MB, free: 8.484 MB / 382.1 MB " [Timeout remaining time 178] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(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: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 66.89 kB / 0.6652 GB, free: 500 kB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2065, allocations: 94.54 MB / 0.7576 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001713/0.2082, allocations: 0.5835 MB / 0.7581 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0002665/0.2085, allocations: 53.91 kB / 0.7582 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.557e-05/0.2085, allocations: 0 / 0.7582 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.713e-05/0.2085, allocations: 0 / 0.7582 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.871e-06/0.2085, allocations: 0 / 0.7582 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002118/0.2087, allocations: 11.98 kB / 0.7582 GB, free: 1.199 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 5.119e-05/0.2088, allocations: 11.92 kB / 0.7582 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.496e-05/0.2088, allocations: 4 kB / 0.7582 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.156e-05/0.2089, allocations: 0 / 0.7582 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 1.933e-05/0.2089, allocations: 4 kB / 0.7582 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.598e-06/0.2089, allocations: 0 / 0.7582 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.96e-05/0.2089, allocations: 11.98 kB / 0.7582 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.416e-06/0.209, allocations: 4 kB / 0.7582 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 1.547e-05/0.209, allocations: 3.938 kB / 0.7582 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 7.801e-05/0.2091, allocations: 16.19 kB / 0.7583 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2091, allocations: 3.938 kB / 0.7583 GB, free: 1.141 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2091, allocations: 0 / 0.7583 GB, free: 1.141 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.2091, allocations: 0 / 0.7583 GB, free: 1.141 MB / 0.5762 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.0003452/0.2094, allocations: 315.5 kB / 0.7586 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.2094, allocations: 16.03 kB / 0.7586 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.536e-05/0.2095, allocations: 34.73 kB / 0.7586 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.196e-05/0.2095, allocations: 0.9375 kB / 0.7586 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.2096, allocations: 160.4 kB / 0.7588 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.2097, allocations: 8.359 kB / 0.7588 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.662e-06/0.2097, allocations: 384 / 0.7588 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.468e-05/0.2098, allocations: 34.27 kB / 0.7588 GB, free: 492 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.2098, allocations: 3.938 kB / 0.7588 GB, free: 488 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-06/0.2098, allocations: 3.984 kB / 0.7588 GB, free: 484 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.2098, allocations: 0 / 0.7588 GB, free: 484 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.883e-05/0.2098, allocations: 11.94 kB / 0.7588 GB, free: 472 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.21, allocations: 149.7 kB / 0.759 GB, free: 272 kB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.908e-05/0.21, allocations: 22.59 kB / 0.759 GB, free: 240 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.586e-05/0.2101, allocations: 4.859 kB / 0.759 GB, free: 232 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001588/0.2102, allocations: 81.17 kB / 0.7591 GB, free: 132 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.2102, allocations: 34.56 kB / 0.7591 GB, free: 88 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.2102, allocations: 4 kB / 0.7591 GB, free: 84 kB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0001393/0.2104, allocations: 49.56 kB / 0.7592 GB, free: 28 kB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3889/0.5993, allocations: 51.41 kB / 0.7592 GB, free: 9.293 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.846e-05/0.5994, allocations: 90.89 kB / 0.7593 GB, free: 9.195 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.5994, allocations: 26.2 kB / 0.7593 GB, free: 9.164 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 1.051e-05/0.5994, allocations: 80.14 kB / 0.7594 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.5994, allocations: 5.953 kB / 0.7594 GB, free: 9.078 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.5994, allocations: 15.16 kB / 0.7594 GB, free: 9.062 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.974e-05/0.5995, allocations: 313.2 kB / 0.7597 GB, free: 8.75 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.504e-05/0.5995, allocations: 3.094 kB / 0.7597 GB, free: 8.75 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.306e-05/0.5995, allocations: 2.953 kB / 0.7597 GB, free: 8.75 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.794e-05/0.5996, allocations: 17.56 kB / 0.7597 GB, free: 8.742 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5996, allocations: 1.875 kB / 0.7597 GB, free: 8.742 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.049e-05/0.5996, allocations: 41.91 kB / 0.7598 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.5997, allocations: 6.219 kB / 0.7598 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.5997, allocations: 3.75 kB / 0.7598 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.5997, allocations: 1.672 kB / 0.7598 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-05/0.5997, allocations: 4.031 kB / 0.7598 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.5998, allocations: 0.5938 kB / 0.7598 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.587e-05/0.5998, allocations: 3.219 kB / 0.7598 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-06/0.5998, allocations: 1.344 kB / 0.7598 GB, free: 8.711 MB / 0.5762 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 3.986e-05/0.5998, allocations: 109.7 kB / 0.7599 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.406e-06/0.5998, allocations: 1.312 kB / 0.7599 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.169e-05/0.5999, allocations: 45.72 kB / 0.7599 GB, free: 8.562 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.5999, allocations: 4.781 kB / 0.7599 GB, free: 8.559 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5999, allocations: 1.219 kB / 0.7599 GB, free: 8.559 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.5999, allocations: 2.797 kB / 0.76 GB, free: 8.559 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.033e-05/0.6, allocations: 148.1 kB / 0.7601 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.6, allocations: 0.7812 kB / 0.7601 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.331e-05/0.6, allocations: 4.125 kB / 0.7601 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.6, allocations: 1.656 kB / 0.7601 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.6, allocations: 0.8125 kB / 0.7601 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.6, allocations: 4.453 kB / 0.7601 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.6, allocations: 2.562 kB / 0.7601 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.195e-05/0.6001, allocations: 67.22 kB / 0.7602 GB, free: 8.305 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.567e-05/0.6001, allocations: 82.3 kB / 0.7602 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.6001, allocations: 2.766 kB / 0.7603 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.305e-05/0.6001, allocations: 5.375 kB / 0.7603 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.483e-05/0.6001, allocations: 2.797 kB / 0.7603 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.6001, allocations: 4.219 kB / 0.7603 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 1.195e-05/0.6002, allocations: 78.62 kB / 0.7603 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5e-08/0.6002, allocations: 0 / 0.7603 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002159/0.6004, allocations: 5.906 kB / 0.7603 GB, free: 8.133 MB / 0.5762 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.0002531/0.6006, allocations: 0.6021 MB / 0.7609 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 7.466e-05/0.6007, allocations: 12.03 kB / 0.7609 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.6007, allocations: 0.5 kB / 0.7609 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.65e-05/0.6007, allocations: 8.859 kB / 0.761 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.6009, allocations: 6.875 kB / 0.761 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002633/0.6011, allocations: 116.6 kB / 0.7611 GB, free: 7.41 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.726e-05/0.6012, allocations: 0.6714 MB / 0.7617 GB, free: 6.715 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.357e-05/0.6012, allocations: 6.781 kB / 0.7617 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.811e-05/0.6012, allocations: 9.953 kB / 0.7617 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of SimCode: time 2.91e-07/0.6012, allocations: 0.5938 kB / 0.7617 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.6241, allocations: 1.068 MB / 0.7628 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.916/8.54, allocations: 10.88 kB / 0.7628 GB, free: 6.375 MB / 0.5762 GB " [Timeout remaining time 651] (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: 12.365902706049383] Failed to read output from testmodel.py, exit status != 0: 8.61001274222508 8.631229627 8.41791802 Calling exit ...