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.0007339/0.0007339, 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.0008457/0.0008457, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.855/0.855, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.001365/0.001365, allocations: 240 kB / 259.4 MB, free: 13.02 MB / 250.7 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 0.6703/0.6703, allocations: 138.4 MB / 454.3 MB, free: 30.02 MB / 410.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 0.6463 GB, free: 1.879 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.066e-05/2.233e-05, allocations: 6.219 kB / 0.6463 GB, free: 1.871 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002354/0.002377, allocations: 1.781 MB / 0.648 GB, free: 80 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2395/0.2418, allocations: 1.175 MB / 0.6492 GB, free: 55.83 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.2419, allocations: 4.875 kB / 0.6492 GB, free: 55.83 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.2423, allocations: 54.02 kB / 0.6492 GB, free: 55.82 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003412/0.2426, allocations: 131.8 kB / 0.6494 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.000535/0.2431, allocations: 192.9 kB / 0.6496 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0002206/0.2433, allocations: 159.5 kB / 0.6497 GB, free: 55.75 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.2435, allocations: 17.95 kB / 0.6497 GB, free: 55.74 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.2436, allocations: 92.88 kB / 0.6498 GB, free: 55.73 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.2437, allocations: 59.36 kB / 0.6499 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.198e-05/0.2437, allocations: 7.469 kB / 0.6499 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001766/0.2439, allocations: 79.48 kB / 0.65 GB, free: 55.72 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 7.627e-05/0.244, allocations: 41.86 kB / 0.65 GB, free: 55.71 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 5.407e-05/0.244, allocations: 29.39 kB / 0.65 GB, free: 55.71 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0003121/0.2444, allocations: 228.6 kB / 0.6502 GB, free: 55.67 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2444, allocations: 1.031 kB / 0.6502 GB, free: 55.67 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.913e-06/0.2444, allocations: 0 / 0.6502 GB, free: 55.67 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.984e-06/0.2444, allocations: 0.6094 kB / 0.6502 GB, free: 55.67 MB / 0.5573 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.000512/0.2449, allocations: 417.4 kB / 0.6506 GB, free: 55.32 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.2449, allocations: 12.56 kB / 0.6507 GB, free: 55.32 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.453e-05/0.2449, allocations: 37.53 kB / 0.6507 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.124e-05/0.245, allocations: 19 kB / 0.6507 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002793/0.2453, allocations: 203 kB / 0.6509 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.2453, allocations: 5.344 kB / 0.6509 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.2453, allocations: 5.875 kB / 0.6509 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.2455, allocations: 117 kB / 0.651 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.2455, allocations: 1.219 kB / 0.651 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.2455, allocations: 7.203 kB / 0.651 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.2455, allocations: 1.375 kB / 0.651 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.507e-05/0.2456, allocations: 40.77 kB / 0.6511 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004064/0.246, allocations: 321.5 kB / 0.6514 GB, free: 54.78 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.2461, allocations: 88.59 kB / 0.6515 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.93e-05/0.2462, allocations: 36.19 kB / 0.6515 GB, free: 54.74 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.2462, allocations: 0.5 kB / 0.6515 GB, free: 54.74 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001474/0.2464, allocations: 89.03 kB / 0.6516 GB, free: 54.69 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.2464, allocations: 0 / 0.6516 GB, free: 54.69 MB / 0.5573 GB Notification: Performance of matching and sorting (n=8): time 0.0002771/0.2466, allocations: 144.8 kB / 0.6517 GB, free: 54.65 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.2467, allocations: 83.22 kB / 0.6518 GB, free: 54.55 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.2469, allocations: 277.4 kB / 0.6521 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.2469, allocations: 29.64 kB / 0.6521 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 6.005e-05/0.2469, allocations: 121.8 kB / 0.6522 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.247, allocations: 16.72 kB / 0.6522 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.247, allocations: 24.45 kB / 0.6522 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.131e-05/0.247, allocations: 333.1 kB / 0.6526 GB, free: 53.98 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.941e-05/0.2471, allocations: 30.31 kB / 0.6526 GB, free: 53.97 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.573e-05/0.2472, allocations: 115.8 kB / 0.6527 GB, free: 53.87 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.337e-05/0.2473, allocations: 73.75 kB / 0.6528 GB, free: 53.83 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.2473, allocations: 0 / 0.6528 GB, free: 53.83 MB / 0.5573 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001405/0.2474, allocations: 123.9 kB / 0.6529 GB, free: 53.76 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.2474, allocations: 7.969 kB / 0.6529 GB, free: 53.76 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.2474, allocations: 1.688 kB / 0.6529 GB, free: 53.76 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.2474, allocations: 0 / 0.6529 GB, free: 53.76 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.75e-05/0.2475, allocations: 12.45 kB / 0.6529 GB, free: 53.76 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2475, allocations: 1.469 kB / 0.6529 GB, free: 53.76 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.344e-05/0.2476, allocations: 11.73 kB / 0.6529 GB, free: 53.75 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.2476, allocations: 5.25 kB / 0.6529 GB, free: 53.75 MB / 0.5573 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 8.804e-05/0.2477, allocations: 151.6 kB / 0.6531 GB, free: 53.62 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.2477, allocations: 16.38 kB / 0.6531 GB, free: 53.61 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.2479, allocations: 133.3 kB / 0.6532 GB, free: 53.55 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.2479, allocations: 2.5 kB / 0.6532 GB, free: 53.55 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2479, allocations: 0.5 kB / 0.6532 GB, free: 53.55 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2479, allocations: 9.391 kB / 0.6532 GB, free: 53.55 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001389/0.248, allocations: 191.4 kB / 0.6534 GB, free: 53.37 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.248, allocations: 0 / 0.6534 GB, free: 53.37 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.045e-05/0.2481, allocations: 7.625 kB / 0.6534 GB, free: 53.37 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.2481, allocations: 1.844 kB / 0.6534 GB, free: 53.37 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.2481, allocations: 1.5 kB / 0.6534 GB, free: 53.37 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.2481, allocations: 1.625 kB / 0.6534 GB, free: 53.37 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2481, allocations: 2.25 kB / 0.6534 GB, free: 53.37 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001538/0.2482, allocations: 158.3 kB / 0.6536 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 2.676e-05/0.2483, allocations: 16.56 kB / 0.6536 GB, free: 53.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.2483, allocations: 5.906 kB / 0.6536 GB, free: 53.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.711e-05/0.2483, allocations: 3.062 kB / 0.6536 GB, free: 53.25 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.117e-05/0.2484, allocations: 9.688 kB / 0.6536 GB, free: 53.25 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.2484, allocations: 8.438 kB / 0.6536 GB, free: 53.25 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001187/0.2485, allocations: 197.5 kB / 0.6538 GB, free: 53.14 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.2485, allocations: 0 / 0.6538 GB, free: 53.14 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002033/0.2487, allocations: 35.77 kB / 0.6538 GB, free: 53.13 MB / 0.5573 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.0009689/0.2497, allocations: 1.047 MB / 0.6549 GB, free: 52.47 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001682/0.2498, allocations: 69.05 kB / 0.6549 GB, free: 52.45 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2498, allocations: 5.844 kB / 0.6549 GB, free: 52.45 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 5.348e-05/0.2499, allocations: 38.06 kB / 0.655 GB, free: 52.43 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.2501, allocations: 41.45 kB / 0.655 GB, free: 52.42 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.2516, allocations: 2.014 MB / 0.657 GB, free: 51.02 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.074e-05/0.2516, allocations: 111.3 kB / 0.6571 GB, free: 50.94 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 7.293e-05/0.2517, allocations: 29.14 kB / 0.6571 GB, free: 50.93 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.748e-05/0.2518, allocations: 52.83 kB / 0.6572 GB, free: 50.9 MB / 0.5573 GB Notification: Performance of SimCode: time 8.62e-07/0.2518, allocations: 0 / 0.6572 GB, free: 50.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/0.2702, allocations: 5.64 MB / 0.6627 GB, free: 49.43 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.374/6.644, allocations: 9.703 kB / 0.6627 GB, free: 49.42 MB / 0.5573 GB " [Timeout remaining time 653] (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: 9.287533625029027] Failed to read output from testmodel.py, exit status != 0: 6.738026318140328 6.745788612 6.49937442 Calling exit ...