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.001652/0.001652, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.002153/0.002153, allocations: 216.5 kB / 23.03 MB, free: 4.922 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.538/1.538, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.389/3.389, allocations: 0.5003 GB / 0.8062 GB, free: 28.25 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.002733/0.002733, allocations: 65.83 kB / 1.17 GB, free: 19.56 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4377/0.4404, allocations: 179 MB / 1.345 GB, free: 15.91 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.004192/0.4446, allocations: 1.776 MB / 1.347 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002478/0.4471, allocations: 1.177 MB / 1.348 GB, free: 12.93 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.4472, allocations: 0 / 1.348 GB, free: 12.93 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0003408/0.4476, allocations: 59.73 kB / 1.348 GB, free: 12.88 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000467/0.448, allocations: 135.4 kB / 1.348 GB, free: 12.74 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007427/0.4488, allocations: 199.4 kB / 1.349 GB, free: 12.55 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003501/0.4491, allocations: 147.6 kB / 1.349 GB, free: 12.4 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.4493, allocations: 21.89 kB / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.4495, allocations: 63.72 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001903/0.4497, allocations: 79.67 kB / 1.349 GB, free: 12.24 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.324e-05/0.4497, allocations: 8 kB / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.45, allocations: 79.92 kB / 1.349 GB, free: 12.15 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.4501, allocations: 43.83 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.424e-05/0.4502, allocations: 43.69 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003956/0.4506, allocations: 219.1 kB / 1.349 GB, free: 11.85 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.4506, allocations: 0 / 1.349 GB, free: 11.85 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4506, allocations: 3.938 kB / 1.349 GB, free: 11.85 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.214e-05/0.4506, allocations: 4 kB / 1.349 GB, free: 11.84 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.0008765/0.4515, allocations: 422.9 kB / 1.35 GB, free: 11.39 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 6.023e-05/0.4515, allocations: 8.031 kB / 1.35 GB, free: 11.39 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.192e-05/0.4516, allocations: 4.188 kB / 1.35 GB, free: 11.38 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.919e-05/0.4516, allocations: 34.75 kB / 1.35 GB, free: 11.34 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.048e-05/0.4517, allocations: 20.8 kB / 1.35 GB, free: 11.32 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000488/0.4522, allocations: 206.7 kB / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.4522, allocations: 12.12 kB / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.4522, allocations: 8 kB / 1.35 GB, free: 11.07 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.4525, allocations: 147.6 kB / 1.35 GB, free: 10.9 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.4525, allocations: 0 / 1.35 GB, free: 10.9 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.4525, allocations: 0 / 1.35 GB, free: 10.9 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.33e-05/0.4526, allocations: 8 kB / 1.35 GB, free: 10.89 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.4527, allocations: 35.97 kB / 1.35 GB, free: 10.86 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006178/0.4533, allocations: 311.9 kB / 1.35 GB, free: 10.51 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.4536, allocations: 94.69 kB / 1.35 GB, free: 10.41 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.4537, allocations: 32.84 kB / 1.351 GB, free: 10.38 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.4537, allocations: 0 / 1.351 GB, free: 10.38 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002179/0.4539, allocations: 83.38 kB / 1.351 GB, free: 10.28 MB / 1.045 GB Notification: Performance of pre-optimization done (n=8): time 1.654e-06/0.4539, allocations: 0 / 1.351 GB, free: 10.28 MB / 1.045 GB Notification: Performance of matching and sorting (n=8): time 0.0004067/0.4543, allocations: 153.4 kB / 1.351 GB, free: 10.12 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.786e-05/0.4544, allocations: 102.8 kB / 1.351 GB, free: 10 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/0.4547, allocations: 287 kB / 1.351 GB, free: 9.707 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.4547, allocations: 25.7 kB / 1.351 GB, free: 9.676 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.503e-05/0.4548, allocations: 120.1 kB / 1.351 GB, free: 9.555 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.099e-05/0.4548, allocations: 27.84 kB / 1.351 GB, free: 9.527 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.853e-05/0.4549, allocations: 21.72 kB / 1.351 GB, free: 9.5 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.455, allocations: 330.8 kB / 1.352 GB, free: 9.168 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.677e-05/0.4551, allocations: 27.98 kB / 1.352 GB, free: 9.141 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/0.4553, allocations: 153.3 kB / 1.352 GB, free: 8.957 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.4554, allocations: 69.69 kB / 1.352 GB, free: 8.883 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.4554, allocations: 0 / 1.352 GB, free: 8.883 MB / 1.045 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002496/0.4557, allocations: 121.8 kB / 1.352 GB, free: 8.758 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.4557, allocations: 4 kB / 1.352 GB, free: 8.754 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.4557, allocations: 12.02 kB / 1.352 GB, free: 8.742 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.4557, allocations: 0 / 1.352 GB, free: 8.742 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.4558, allocations: 8 kB / 1.352 GB, free: 8.734 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.4559, allocations: 12 kB / 1.352 GB, free: 8.723 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.718e-05/0.4559, allocations: 19.81 kB / 1.352 GB, free: 8.703 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.4559, allocations: 0 / 1.352 GB, free: 8.703 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.0001729/0.4561, allocations: 143 kB / 1.352 GB, free: 8.555 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.379e-05/0.4561, allocations: 15.91 kB / 1.352 GB, free: 8.539 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003193/0.4565, allocations: 131 kB / 1.352 GB, free: 8.406 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.4565, allocations: 8 kB / 1.352 GB, free: 8.398 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.4565, allocations: 3.938 kB / 1.352 GB, free: 8.395 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4565, allocations: 0 / 1.352 GB, free: 8.395 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.4567, allocations: 184.7 kB / 1.352 GB, free: 8.172 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4567, allocations: 0 / 1.352 GB, free: 8.172 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.523e-05/0.4568, allocations: 15.92 kB / 1.353 GB, free: 8.156 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.4568, allocations: 0 / 1.353 GB, free: 8.156 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.4568, allocations: 0 / 1.353 GB, free: 8.156 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.4568, allocations: 4 kB / 1.353 GB, free: 8.152 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.4568, allocations: 3.938 kB / 1.353 GB, free: 8.148 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.4571, allocations: 153 kB / 1.353 GB, free: 7.98 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.171e-05/0.4571, allocations: 19.91 kB / 1.353 GB, free: 7.961 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.4572, allocations: 3.984 kB / 1.353 GB, free: 7.957 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.853e-05/0.4572, allocations: 4 kB / 1.353 GB, free: 7.953 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.538e-05/0.4573, allocations: 19.86 kB / 1.353 GB, free: 7.934 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-05/0.4573, allocations: 4.234 kB / 1.353 GB, free: 7.93 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002347/0.4576, allocations: 208.6 kB / 1.353 GB, free: 7.727 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.4576, allocations: 3.938 kB / 1.353 GB, free: 7.723 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002778/0.4578, allocations: 31.94 kB / 1.353 GB, free: 7.691 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 (8): * Single equations (assignments): 5 * 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.002156/0.46, allocations: 1.034 MB / 1.354 GB, free: 6.816 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002481/0.4602, allocations: 75.95 kB / 1.354 GB, free: 6.742 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4603, allocations: 0 / 1.354 GB, free: 6.742 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.4604, allocations: 39.91 kB / 1.354 GB, free: 6.703 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003207/0.4607, allocations: 36.58 kB / 1.354 GB, free: 6.668 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.4633, allocations: 2.002 MB / 1.356 GB, free: 4.582 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.4634, allocations: 114.7 kB / 1.356 GB, free: 4.441 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 9.054e-05/0.4635, allocations: 25.38 kB / 1.356 GB, free: 4.418 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.4636, allocations: 51.36 kB / 1.356 GB, free: 4.367 MB / 1.045 GB Notification: Performance of SimCode: time 5.91e-07/0.4636, allocations: 0 / 1.356 GB, free: 4.367 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02688/0.4905, allocations: 5.226 MB / 1.361 GB, free: 15.22 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/12, allocations: 8 kB / 1.361 GB, free: 15.21 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.256783348042518] Failed to read output from testmodel.py, exit status != 0: 12.224430135916919 12.249003387 11.793587415 Calling exit ...