Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.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.001747/0.001747, allocations: 98.08 kB / 19.73 MB, free: 2.23 MB / 14.72 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.002199/0.002199, allocations: 217.2 kB / 23.04 MB, free: 5.074 MB / 14.72 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.511/1.511, allocations: 230.6 MB / 256.8 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.378/3.378, allocations: 0.5003 GB / 0.8061 GB, free: 26.77 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings 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.001959/0.001959, allocations: 70.56 kB / 1.171 GB, free: 19.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3904, allocations: 179 MB / 1.345 GB, free: 452 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003243/0.3937, allocations: 1.812 MB / 1.347 GB, free: 14.61 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002241/0.3959, allocations: 1.282 MB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.396, allocations: 3.938 kB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0003412/0.3964, allocations: 59.73 kB / 1.348 GB, free: 13.26 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0003799/0.3967, allocations: 127.4 kB / 1.349 GB, free: 13.14 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000611/0.3974, allocations: 198.9 kB / 1.349 GB, free: 12.95 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002965/0.3977, allocations: 155.6 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.3978, allocations: 17.91 kB / 1.349 GB, free: 12.77 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.3979, allocations: 67.7 kB / 1.349 GB, free: 12.71 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.3981, allocations: 79.61 kB / 1.349 GB, free: 12.63 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.3981, allocations: 8 kB / 1.349 GB, free: 12.62 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.3983, allocations: 83.92 kB / 1.349 GB, free: 12.54 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.024e-05/0.3984, allocations: 43.78 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.452e-05/0.3984, allocations: 59.61 kB / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003318/0.3988, allocations: 211.2 kB / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3988, allocations: 0 / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3988, allocations: 0 / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.107e-06/0.3988, allocations: 0 / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008125/0.3996, allocations: 430.8 kB / 1.35 GB, free: 11.77 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 6.11e-05/0.3996, allocations: 12.03 kB / 1.35 GB, free: 11.76 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.382e-05/0.3997, allocations: 4.125 kB / 1.35 GB, free: 11.76 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.818e-05/0.3997, allocations: 34.75 kB / 1.35 GB, free: 11.71 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.648e-05/0.3998, allocations: 24.8 kB / 1.35 GB, free: 11.69 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005597/0.4004, allocations: 194.9 kB / 1.35 GB, free: 11.48 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.4004, allocations: 4.125 kB / 1.35 GB, free: 11.47 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.278e-05/0.4004, allocations: 4 kB / 1.35 GB, free: 11.47 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003251/0.4008, allocations: 100.2 kB / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.4008, allocations: 0 / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.4008, allocations: 0 / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.914e-05/0.4008, allocations: 4 kB / 1.35 GB, free: 11.35 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001613/0.401, allocations: 31.98 kB / 1.35 GB, free: 11.32 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000779/0.4018, allocations: 335.7 kB / 1.351 GB, free: 10.95 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003488/0.4021, allocations: 78.66 kB / 1.351 GB, free: 10.86 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.4022, allocations: 32.84 kB / 1.351 GB, free: 10.83 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.4023, allocations: 7.984 kB / 1.351 GB, free: 10.82 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003058/0.4026, allocations: 87.39 kB / 1.351 GB, free: 10.72 MB / 1.045 GB Notification: Performance of pre-optimization done (n=8): time 1.833e-06/0.4026, allocations: 0 / 1.351 GB, free: 10.72 MB / 1.045 GB Notification: Performance of matching and sorting (n=8): time 0.0005519/0.4031, allocations: 141.8 kB / 1.351 GB, free: 10.58 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.4032, allocations: 106.8 kB / 1.351 GB, free: 10.45 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004704/0.4037, allocations: 275 kB / 1.351 GB, free: 10.17 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/0.4037, allocations: 29.7 kB / 1.351 GB, free: 10.13 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.4039, allocations: 120.1 kB / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.216e-05/0.4039, allocations: 27.83 kB / 1.351 GB, free: 9.984 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.653e-05/0.404, allocations: 25.7 kB / 1.351 GB, free: 9.953 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0002905/0.4043, allocations: 334.8 kB / 1.352 GB, free: 9.617 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.4044, allocations: 27.92 kB / 1.352 GB, free: 9.59 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.4046, allocations: 72.2 kB / 1.352 GB, free: 9.504 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.4048, allocations: 73.77 kB / 1.352 GB, free: 9.426 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4048, allocations: 0 / 1.352 GB, free: 9.426 MB / 1.045 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003787/0.4052, allocations: 113.5 kB / 1.352 GB, free: 9.309 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.4052, allocations: 8 kB / 1.352 GB, free: 9.301 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.4052, allocations: 0 / 1.352 GB, free: 9.301 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.4053, allocations: 0 / 1.352 GB, free: 9.301 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.4054, allocations: 15.98 kB / 1.352 GB, free: 9.285 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.4054, allocations: 3.938 kB / 1.352 GB, free: 9.281 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.4055, allocations: 15.92 kB / 1.352 GB, free: 9.266 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.4055, allocations: 0 / 1.352 GB, free: 9.266 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * 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 0.0002083/0.4058, allocations: 150.9 kB / 1.352 GB, free: 9.109 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.145e-05/0.4058, allocations: 19.89 kB / 1.352 GB, free: 9.09 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004072/0.4062, allocations: 119 kB / 1.352 GB, free: 8.969 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.4062, allocations: 4 kB / 1.352 GB, free: 8.965 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.4062, allocations: 3.938 kB / 1.352 GB, free: 8.961 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.4062, allocations: 7.984 kB / 1.352 GB, free: 8.953 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003278/0.4066, allocations: 192.7 kB / 1.353 GB, free: 8.723 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.4066, allocations: 0 / 1.353 GB, free: 8.723 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.874e-05/0.4066, allocations: 4 kB / 1.353 GB, free: 8.719 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.4066, allocations: 3.938 kB / 1.353 GB, free: 8.715 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.4067, allocations: 11.98 kB / 1.353 GB, free: 8.703 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.4067, allocations: 0 / 1.353 GB, free: 8.703 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.4067, allocations: 3.938 kB / 1.353 GB, free: 8.699 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003774/0.407, allocations: 145 kB / 1.353 GB, free: 8.539 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.126e-05/0.4071, allocations: 15.89 kB / 1.353 GB, free: 8.523 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.159e-05/0.4071, allocations: 4 kB / 1.353 GB, free: 8.52 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.076e-05/0.4072, allocations: 4 kB / 1.353 GB, free: 8.516 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.397e-05/0.4073, allocations: 11.92 kB / 1.353 GB, free: 8.504 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.4073, allocations: 4 kB / 1.353 GB, free: 8.5 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000217/0.4075, allocations: 204.6 kB / 1.353 GB, free: 8.301 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4075, allocations: 0 / 1.353 GB, free: 8.301 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002885/0.4078, allocations: 35.94 kB / 1.353 GB, free: 8.266 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002144/0.4099, allocations: 0.9967 MB / 1.354 GB, free: 7.402 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002872/0.4102, allocations: 79.86 kB / 1.354 GB, free: 7.324 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4102, allocations: 0 / 1.354 GB, free: 7.324 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 9.667e-05/0.4103, allocations: 32.05 kB / 1.354 GB, free: 7.293 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.4107, allocations: 49.88 kB / 1.354 GB, free: 7.25 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002616/0.4133, allocations: 1.99 MB / 1.356 GB, free: 5.168 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.4137, allocations: 0.7241 MB / 1.357 GB, free: 4.414 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001002/0.4138, allocations: 29.36 kB / 1.357 GB, free: 4.387 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.4139, allocations: 51.42 kB / 1.357 GB, free: 4.336 MB / 1.045 GB Notification: Performance of SimCode: time 8.11e-07/0.4139, allocations: 3.938 kB / 1.357 GB, free: 4.332 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03133/0.4453, allocations: 4.996 MB / 1.362 GB, free: 15.42 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.76, allocations: 10.27 kB / 1.362 GB, free: 15.41 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 19.01038424897706] Failed to read output from testmodel.py, exit status != 0: 11.988052244996652 12.017015201 11.612542008 Calling exit ...