Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001286/0.001286, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001434/0.001434, allocations: 217.4 kB / 22.25 MB, free: 5.078 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.453/1.453, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002513/0.002513, allocations: 299 kB / 312.7 MB, free: 2.805 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.303/1.303, allocations: 180.6 MB / 0.5369 GB, free: 12.9 MB / 382.1 MB " [Timeout remaining time 178] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.002824/0.002824, allocations: 100.4 kB / 0.7396 GB, free: 28.62 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1898, allocations: 95.38 MB / 0.8327 GB, free: 8.637 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003441/0.1932, allocations: 1.835 MB / 0.8345 GB, free: 6.793 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002415/0.1956, allocations: 1.279 MB / 0.8358 GB, free: 5.508 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.1958, allocations: 0 / 0.8358 GB, free: 5.508 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003608/0.1961, allocations: 63.67 kB / 0.8358 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000443/0.1966, allocations: 119.5 kB / 0.8359 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000742/0.1973, allocations: 201.3 kB / 0.8361 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002945/0.1976, allocations: 163.5 kB / 0.8363 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.1977, allocations: 13.62 kB / 0.8363 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.1979, allocations: 71.7 kB / 0.8364 GB, free: 4.883 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.198, allocations: 63.75 kB / 0.8364 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.42e-05/0.198, allocations: 8 kB / 0.8364 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002126/0.1982, allocations: 87.86 kB / 0.8365 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.347e-05/0.1983, allocations: 47.83 kB / 0.8366 GB, free: 4.68 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.66e-05/0.1984, allocations: 59.61 kB / 0.8366 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003937/0.1988, allocations: 211.4 kB / 0.8368 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1988, allocations: 0 / 0.8368 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.793e-06/0.1988, allocations: 0 / 0.8368 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.1988, allocations: 0 / 0.8368 GB, free: 4.414 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007658/0.1996, allocations: 426.9 kB / 0.8372 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1996, allocations: 9.344 kB / 0.8372 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.605e-05/0.1997, allocations: 38.73 kB / 0.8373 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.222e-05/0.1997, allocations: 24.78 kB / 0.8373 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004045/0.2001, allocations: 202 kB / 0.8375 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.2002, allocations: 4.375 kB / 0.8375 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.2002, allocations: 11.94 kB / 0.8375 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.2004, allocations: 92.17 kB / 0.8376 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.2004, allocations: 0 / 0.8376 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.2004, allocations: 0 / 0.8376 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.2005, allocations: 8 kB / 0.8376 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.2006, allocations: 39.91 kB / 0.8376 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005474/0.2011, allocations: 319.8 kB / 0.838 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.2013, allocations: 86.69 kB / 0.838 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.328e-05/0.2014, allocations: 28.84 kB / 0.8381 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.2014, allocations: 8 kB / 0.8381 GB, free: 3.004 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/0.2016, allocations: 83.33 kB / 0.8382 GB, free: 2.91 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/0.2016, allocations: 0 / 0.8382 GB, free: 2.91 MB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.00039/0.202, allocations: 145.5 kB / 0.8383 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.545e-05/0.2021, allocations: 102.8 kB / 0.8384 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.2024, allocations: 279 kB / 0.8387 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.2025, allocations: 33.7 kB / 0.8387 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.2026, allocations: 120.1 kB / 0.8388 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.111e-05/0.2026, allocations: 15.91 kB / 0.8388 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.397e-05/0.2027, allocations: 29.7 kB / 0.8388 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.2028, allocations: 326.8 kB / 0.8392 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-05/0.2029, allocations: 23.98 kB / 0.8392 GB, free: 1.789 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.203, allocations: 72.27 kB / 0.8392 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.2032, allocations: 69.64 kB / 0.8393 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2032, allocations: 0 / 0.8393 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002325/0.2034, allocations: 117.9 kB / 0.8394 GB, free: 1.508 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.2034, allocations: 7.938 kB / 0.8394 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.2034, allocations: 192 / 0.8394 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.2035, allocations: 4 kB / 0.8394 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.974e-05/0.2036, allocations: 11.94 kB / 0.8394 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.2036, allocations: 12.09 kB / 0.8395 GB, free: 1.473 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.602e-05/0.2037, allocations: 19.81 kB / 0.8395 GB, free: 1.453 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.2037, allocations: 4 kB / 0.8395 GB, free: 1.449 MB / 0.5762 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.0001595/0.2038, allocations: 147.2 kB / 0.8396 GB, free: 1.297 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.31e-05/0.2039, allocations: 19.84 kB / 0.8396 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003013/0.2042, allocations: 127 kB / 0.8398 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.2042, allocations: 4 kB / 0.8398 GB, free: 1.141 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2042, allocations: 4 kB / 0.8398 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.2042, allocations: 3.938 kB / 0.8398 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002369/0.2044, allocations: 192.7 kB / 0.84 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.2044, allocations: 4 kB / 0.84 GB, free: 0.8984 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.182e-05/0.2045, allocations: 7.984 kB / 0.84 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.2045, allocations: 0 / 0.84 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.2045, allocations: 0 / 0.84 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2045, allocations: 0 / 0.84 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2045, allocations: 0 / 0.84 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002651/0.2048, allocations: 152.8 kB / 0.8401 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/0.2048, allocations: 19.91 kB / 0.8401 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.2048, allocations: 0 / 0.8401 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.512e-05/0.2049, allocations: 7.984 kB / 0.8401 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.01e-05/0.2049, allocations: 19.91 kB / 0.8402 GB, free: 0.6758 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.205, allocations: 0 / 0.8402 GB, free: 0.6758 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002081/0.2052, allocations: 195.2 kB / 0.8403 GB, free: 496 kB / 0.5762 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2052, allocations: 0 / 0.8403 GB, free: 496 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002669/0.2054, allocations: 35.92 kB / 0.8404 GB, free: 460 kB / 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: 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.002107/0.2075, allocations: 0.9991 MB / 0.8414 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000241/0.2078, allocations: 67.91 kB / 0.8414 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.2078, allocations: 4 kB / 0.8414 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 8.803e-05/0.2079, allocations: 35.98 kB / 0.8415 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.2082, allocations: 50.88 kB / 0.8415 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002448/0.2106, allocations: 1.967 MB / 0.8434 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.211, allocations: 0.7319 MB / 0.8441 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.801e-05/0.2111, allocations: 21.08 kB / 0.8442 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.2112, allocations: 55.41 kB / 0.8442 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of SimCode: time 5.31e-07/0.2112, allocations: 0 / 0.8442 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03071/0.2419, allocations: 4.981 MB / 0.8491 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.89, allocations: 15.17 kB / 0.8491 GB, free: 7.641 MB / 0.5919 GB " [Timeout remaining time 649] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.496203441001853] Failed to read output from testmodel.py, exit status != 0: 11.051969536998513 11.068307673 10.86620919 Calling exit ...