Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0008328/0.0008328, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0009882/0.0009882, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8997/0.8997, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/package.mo): time 0.715/0.715, allocations: 154.6 MB / 413.7 MB, free: 0.7891 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 0.6181 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.345e-05/2.531e-05, allocations: 3.875 kB / 0.6181 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002188/0.002213, allocations: 1.538 MB / 0.6196 GB, free: 12.05 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.000398/0.002611, allocations: 127.6 kB / 0.6197 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.198e-05/0.002653, allocations: 3.938 kB / 0.6197 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.989e-05/0.002683, allocations: 0 / 0.6197 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 4.563e-05/0.002729, allocations: 7.938 kB / 0.6197 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.003, allocations: 23.97 kB / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 7.674e-05/0.003077, allocations: 31.91 kB / 0.6198 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.003196, allocations: 4 kB / 0.6198 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 6.961e-05/0.003265, allocations: 19.98 kB / 0.6198 GB, free: 11.84 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 7.42e-05/0.00334, allocations: 15.92 kB / 0.6198 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.003366, allocations: 0 / 0.6198 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 9.821e-05/0.003464, allocations: 15.92 kB / 0.6198 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.849e-05/0.003482, allocations: 7.984 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.475e-05/0.003507, allocations: 8 kB / 0.6199 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001327/0.00364, allocations: 47.81 kB / 0.6199 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.003642, allocations: 4 kB / 0.6199 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of FrontEnd: time 7.11e-07/0.003643, allocations: 0 / 0.6199 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.003648, allocations: 0 / 0.6199 GB, free: 11.74 MB / 0.5886 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.0004406/0.004089, allocations: 272.3 kB / 0.6202 GB, free: 11.44 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.004137, allocations: 8.031 kB / 0.6202 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.092e-05/0.004178, allocations: 34.75 kB / 0.6202 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.606e-05/0.004204, allocations: 0.9375 kB / 0.6202 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.955e-05/0.004293, allocations: 105.8 kB / 0.6203 GB, free: 11.26 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.004321, allocations: 4.375 kB / 0.6203 GB, free: 11.26 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.004332, allocations: 384 / 0.6203 GB, free: 11.26 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/0.004488, allocations: 62.22 kB / 0.6204 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.004497, allocations: 192 / 0.6204 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.004507, allocations: 384 / 0.6204 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.004514, allocations: 4.125 kB / 0.6204 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001079/0.004622, allocations: 47.89 kB / 0.6204 GB, free: 11.14 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003277/0.00495, allocations: 224 kB / 0.6206 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.00518, allocations: 58.53 kB / 0.6207 GB, free: 10.81 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.176e-05/0.005232, allocations: 28.91 kB / 0.6207 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 7.721e-05/0.005309, allocations: 15.86 kB / 0.6207 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.005328, allocations: 34.5 kB / 0.6208 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 1.492e-06/0.00533, allocations: 0 / 0.6208 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0002407/0.00557, allocations: 85.64 kB / 0.6209 GB, free: 10.63 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.005603, allocations: 59.39 kB / 0.6209 GB, free: 10.56 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.491e-05/0.005658, allocations: 97.86 kB / 0.621 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.00567, allocations: 33.64 kB / 0.621 GB, free: 10.42 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.005714, allocations: 84.14 kB / 0.6211 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.005731, allocations: 11.89 kB / 0.6211 GB, free: 10.32 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.999e-05/0.005761, allocations: 21.7 kB / 0.6211 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.602e-05/0.005837, allocations: 310.8 kB / 0.6214 GB, free: 9.98 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.628e-05/0.005884, allocations: 23.97 kB / 0.6215 GB, free: 9.957 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.868e-05/0.005922, allocations: 15.92 kB / 0.6215 GB, free: 9.941 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.384e-05/0.006016, allocations: 53.28 kB / 0.6215 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.006018, allocations: 0 / 0.6215 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001142/0.006132, allocations: 77.55 kB / 0.6216 GB, free: 9.805 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.006146, allocations: 8 kB / 0.6216 GB, free: 9.797 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.006151, allocations: 0 / 0.6216 GB, free: 9.797 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.006164, allocations: 4.031 kB / 0.6216 GB, free: 9.793 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.405e-05/0.006208, allocations: 11.98 kB / 0.6216 GB, free: 9.781 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.006212, allocations: 0 / 0.6216 GB, free: 9.781 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.749e-05/0.00624, allocations: 11.98 kB / 0.6216 GB, free: 9.77 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.006245, allocations: 4 kB / 0.6216 GB, free: 9.766 MB / 0.5886 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.072e-05/0.006306, allocations: 118.8 kB / 0.6218 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.368e-05/0.006319, allocations: 3.938 kB / 0.6218 GB, free: 9.637 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001609/0.00648, allocations: 81.33 kB / 0.6218 GB, free: 9.547 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.006482, allocations: 0 / 0.6218 GB, free: 9.547 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.006486, allocations: 0 / 0.6218 GB, free: 9.547 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.006489, allocations: 0 / 0.6218 GB, free: 9.547 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.006596, allocations: 128.8 kB / 0.622 GB, free: 9.379 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.006597, allocations: 4 kB / 0.622 GB, free: 9.375 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.282e-05/0.00663, allocations: 15.92 kB / 0.622 GB, free: 9.359 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.006631, allocations: 0 / 0.622 GB, free: 9.359 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-06/0.006639, allocations: 0 / 0.622 GB, free: 9.359 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.006643, allocations: 3.984 kB / 0.622 GB, free: 9.355 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.006644, allocations: 0 / 0.622 GB, free: 9.355 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001518/0.006795, allocations: 171.4 kB / 0.6221 GB, free: 9.172 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 9.247e-06/0.006805, allocations: 11.94 kB / 0.6222 GB, free: 9.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.084e-05/0.006816, allocations: 0 / 0.6222 GB, free: 9.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.877e-05/0.006854, allocations: 11.98 kB / 0.6222 GB, free: 9.148 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.065e-05/0.006915, allocations: 7.922 kB / 0.6222 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-06/0.006918, allocations: 4 kB / 0.6222 GB, free: 9.137 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.141e-05/0.006949, allocations: 87.22 kB / 0.6223 GB, free: 9.051 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.006949, allocations: 0 / 0.6223 GB, free: 9.051 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001613/0.007111, allocations: 8 kB / 0.6223 GB, free: 9.043 MB / 0.5886 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.0003685/0.007479, allocations: 0.7006 MB / 0.623 GB, free: 8.316 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.000142/0.007621, allocations: 47.95 kB / 0.623 GB, free: 8.27 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.007623, allocations: 4 kB / 0.623 GB, free: 8.266 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 4.874e-05/0.007672, allocations: 23.97 kB / 0.623 GB, free: 8.242 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.007901, allocations: 4 kB / 0.623 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003454/0.008246, allocations: 147 kB / 0.6232 GB, free: 8.055 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.798e-05/0.008294, allocations: 67.28 kB / 0.6232 GB, free: 7.969 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.076e-05/0.008315, allocations: 4 kB / 0.6232 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.506e-05/0.00835, allocations: 16.5 kB / 0.6233 GB, free: 7.949 MB / 0.5886 GB Notification: Performance of SimCode: time 3.71e-07/0.008351, allocations: 0 / 0.6233 GB, free: 7.949 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01476/0.02311, allocations: 2.265 MB / 0.6255 GB, free: 5.82 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.832/6.855, allocations: 7.609 kB / 0.6255 GB, free: 5.82 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.520799742080271] Failed to read output from testmodel.py, exit status != 0: 6.93578125257045 6.946723074 6.941457233 Calling exit ...