Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001717/0.001717, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.002072/0.002072, allocations: 220.2 kB / 23.03 MB, free: 4.945 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.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.309/3.309, allocations: 0.49 GB / 0.7959 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_12_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.002205/0.002205, allocations: 73.16 kB / 1.155 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3995, allocations: 176.1 MB / 1.327 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003612/0.4031, allocations: 1.767 MB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002311/0.4054, allocations: 1.193 MB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.111e-05/0.4055, allocations: 3.938 kB / 1.33 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.4058, allocations: 59.73 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004484/0.4063, allocations: 123.5 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006458/0.4069, allocations: 201.4 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002319/0.4072, allocations: 151.6 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.4073, allocations: 21.89 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.4074, allocations: 67.7 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.4075, allocations: 71.69 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.62e-05/0.4076, allocations: 8 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.4077, allocations: 79.92 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.085e-05/0.4078, allocations: 47.83 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.919e-05/0.4079, allocations: 43.73 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.4082, allocations: 215.1 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.4082, allocations: 3.938 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.303e-06/0.4082, allocations: 4 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.4082, allocations: 0 / 1.331 GB, free: 13.45 MB / 1.029 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.0007115/0.4089, allocations: 426.9 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.409, allocations: 8.031 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.985e-05/0.409, allocations: 4.188 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.686e-05/0.409, allocations: 34.73 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.15e-05/0.4091, allocations: 16.84 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003826/0.4095, allocations: 202.8 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.4095, allocations: 16.12 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.4095, allocations: 7.984 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002563/0.4098, allocations: 143.6 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.4098, allocations: 3.938 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.4098, allocations: 0 / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.4098, allocations: 4 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.4099, allocations: 31.97 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00055/0.4105, allocations: 319.8 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.4107, allocations: 94.69 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.997e-05/0.4108, allocations: 28.84 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.4108, allocations: 3.938 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001958/0.411, allocations: 87.36 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.502e-06/0.411, allocations: 0 / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.000397/0.4114, allocations: 145.5 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.142e-05/0.4115, allocations: 106.8 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000317/0.4118, allocations: 286.9 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.4118, allocations: 25.7 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.4119, allocations: 128.1 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.954e-05/0.412, allocations: 19.86 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.952e-05/0.412, allocations: 29.7 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.4122, allocations: 322.8 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.135e-05/0.4123, allocations: 31.98 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.4124, allocations: 153.3 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001532/0.4126, allocations: 69.64 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4126, allocations: 0 / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002416/0.4128, allocations: 121.5 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.4128, allocations: 9.594 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.4128, allocations: 4 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.4129, allocations: 0 / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.413, allocations: 11.98 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.413, allocations: 7.938 kB / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.176e-05/0.413, allocations: 7.938 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.4131, allocations: 4 kB / 1.333 GB, free: 10.32 MB / 1.029 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.0001528/0.4132, allocations: 139.1 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.386e-05/0.4132, allocations: 19.86 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003145/0.4136, allocations: 135.4 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.4136, allocations: 4 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.4136, allocations: 3.938 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.4136, allocations: 3.984 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.4138, allocations: 184.7 kB / 1.334 GB, free: 9.777 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4138, allocations: 0 / 1.334 GB, free: 9.777 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.648e-05/0.4139, allocations: 16 kB / 1.334 GB, free: 9.762 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.4139, allocations: 7.875 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.4139, allocations: 0 / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.4139, allocations: 3.984 kB / 1.334 GB, free: 9.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4139, allocations: 8.016 kB / 1.334 GB, free: 9.742 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002848/0.4142, allocations: 149 kB / 1.334 GB, free: 9.578 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.4142, allocations: 19.86 kB / 1.334 GB, free: 9.559 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.4142, allocations: 0 / 1.334 GB, free: 9.559 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.965e-05/0.4143, allocations: 8 kB / 1.334 GB, free: 9.551 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.324e-05/0.4144, allocations: 16.05 kB / 1.334 GB, free: 9.535 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.4144, allocations: 7.984 kB / 1.334 GB, free: 9.527 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002645/0.4146, allocations: 208.5 kB / 1.334 GB, free: 9.324 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4146, allocations: 0 / 1.334 GB, free: 9.324 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002924/0.4149, allocations: 35.92 kB / 1.334 GB, free: 9.289 MB / 1.029 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.002225/0.4172, allocations: 1.04 MB / 1.335 GB, free: 8.406 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003026/0.4175, allocations: 63.97 kB / 1.335 GB, free: 8.344 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4175, allocations: 0 / 1.335 GB, free: 8.344 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.4176, allocations: 47.83 kB / 1.335 GB, free: 8.297 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/0.4179, allocations: 40.73 kB / 1.335 GB, free: 8.262 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.4207, allocations: 2.001 MB / 1.337 GB, free: 6.168 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000122/0.4208, allocations: 110.6 kB / 1.337 GB, free: 6.043 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.524e-05/0.4209, allocations: 25.38 kB / 1.338 GB, free: 6.02 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.421, allocations: 55.41 kB / 1.338 GB, free: 5.965 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.421, allocations: 0 / 1.338 GB, free: 5.965 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02727/0.4483, allocations: 5.232 MB / 1.343 GB, free: 0.8359 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.02, allocations: 14.95 kB / 1.343 GB, free: 0.8242 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 19.21356745995581] Failed to read output from testmodel.py, exit status != 0: 12.25001639907714 12.265919265 11.854508475 Calling exit ...