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.00133/0.00133, allocations: 106.2 kB / 16.45 MB, free: 6.453 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.001588/0.001588, allocations: 215.2 kB / 19.43 MB, free: 3.625 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.455/1.455, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002442/0.002442, allocations: 287.4 kB / 309.1 MB, free: 3.969 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.228/1.228, allocations: 180.9 MB / 0.5333 GB, free: 13.81 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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.002837/0.002837, allocations: 106.8 kB / 0.7343 GB, free: 28.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2155, allocations: 95.34 MB / 0.8274 GB, free: 9.848 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.00342/0.2189, allocations: 1.811 MB / 0.8291 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002261/0.2212, allocations: 1.271 MB / 0.8304 GB, free: 6.746 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.2213, allocations: 3.938 kB / 0.8304 GB, free: 6.742 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003259/0.2216, allocations: 59.73 kB / 0.8304 GB, free: 6.684 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003784/0.222, allocations: 127.5 kB / 0.8306 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005751/0.2226, allocations: 187.3 kB / 0.8307 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002383/0.2228, allocations: 163.6 kB / 0.8309 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.2229, allocations: 13.44 kB / 0.8309 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.2231, allocations: 71.69 kB / 0.831 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.2232, allocations: 79.69 kB / 0.831 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.943e-05/0.2232, allocations: 4 kB / 0.831 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.2234, allocations: 67.95 kB / 0.8311 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.582e-05/0.2235, allocations: 47.83 kB / 0.8312 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.422e-05/0.2236, allocations: 55.61 kB / 0.8312 GB, free: 5.883 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003761/0.2239, allocations: 211.4 kB / 0.8314 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2239, allocations: 4 kB / 0.8314 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2239, allocations: 0 / 0.8314 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.2239, allocations: 4 kB / 0.8314 GB, free: 5.668 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.0007687/0.2247, allocations: 0.4883 MB / 0.8319 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.2248, allocations: 12.03 kB / 0.8319 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.284e-05/0.2248, allocations: 34.75 kB / 0.8319 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.582e-05/0.2249, allocations: 16.84 kB / 0.832 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.2253, allocations: 259.9 kB / 0.8322 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.2253, allocations: 4.375 kB / 0.8322 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.2253, allocations: 15.88 kB / 0.8322 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002253/0.2255, allocations: 100.2 kB / 0.8323 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.2255, allocations: 0 / 0.8323 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.2255, allocations: 0 / 0.8323 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.2256, allocations: 4 kB / 0.8323 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.2257, allocations: 35.97 kB / 0.8324 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005731/0.2263, allocations: 348.8 kB / 0.8327 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.2265, allocations: 86.7 kB / 0.8328 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.925e-05/0.2266, allocations: 32.83 kB / 0.8328 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.2266, allocations: 7.984 kB / 0.8328 GB, free: 4.062 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001916/0.2268, allocations: 87.27 kB / 0.8329 GB, free: 3.965 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.2268, allocations: 0 / 0.8329 GB, free: 3.965 MB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.0003968/0.2272, allocations: 141.5 kB / 0.833 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.2273, allocations: 106.8 kB / 0.8331 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003077/0.2276, allocations: 275.8 kB / 0.8334 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.2276, allocations: 29.7 kB / 0.8334 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.2277, allocations: 124.1 kB / 0.8335 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.988e-05/0.2277, allocations: 19.83 kB / 0.8336 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.022e-05/0.2278, allocations: 25.72 kB / 0.8336 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001689/0.228, allocations: 330.8 kB / 0.8339 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.031e-05/0.228, allocations: 27.98 kB / 0.8339 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.2281, allocations: 64.28 kB / 0.834 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.2283, allocations: 77.92 kB / 0.8341 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2283, allocations: 0 / 0.8341 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002621/0.2286, allocations: 117.5 kB / 0.8342 GB, free: 2.559 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.2286, allocations: 4 kB / 0.8342 GB, free: 2.555 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2286, allocations: 4.031 kB / 0.8342 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.2286, allocations: 4 kB / 0.8342 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.839e-05/0.2287, allocations: 11.98 kB / 0.8342 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.2287, allocations: 8 kB / 0.8342 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.863e-05/0.2288, allocations: 11.89 kB / 0.8342 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.2288, allocations: 4 kB / 0.8342 GB, free: 2.512 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.0001412/0.2289, allocations: 147.8 kB / 0.8344 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.468e-05/0.229, allocations: 15.91 kB / 0.8344 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.706e-05/0.229, allocations: 25.39 kB / 0.8344 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.229, allocations: 0 / 0.8344 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.229, allocations: 0 / 0.8344 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.229, allocations: 7.875 kB / 0.8344 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002343/0.2293, allocations: 233.5 kB / 0.8346 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2293, allocations: 0 / 0.8346 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.988e-05/0.2293, allocations: 4 kB / 0.8346 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.2293, allocations: 0 / 0.8346 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.2293, allocations: 4 kB / 0.8346 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2293, allocations: 0 / 0.8346 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2293, allocations: 0 / 0.8346 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.2296, allocations: 148.9 kB / 0.8348 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.952e-05/0.2297, allocations: 97.19 kB / 0.8349 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.2297, allocations: 0 / 0.8349 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.488e-05/0.2297, allocations: 7.938 kB / 0.8349 GB, free: 1.742 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.957e-05/0.2298, allocations: 15.92 kB / 0.8349 GB, free: 1.727 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.2298, allocations: 4 kB / 0.8349 GB, free: 1.723 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002082/0.23, allocations: 204.6 kB / 0.8351 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.23, allocations: 7.938 kB / 0.8351 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002698/0.2303, allocations: 35.94 kB / 0.8351 GB, free: 1.48 MB / 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.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * 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.002101/0.2324, allocations: 0.9918 MB / 0.8361 GB, free: 0.6211 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002743/0.2327, allocations: 71.91 kB / 0.8362 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2327, allocations: 3.938 kB / 0.8362 GB, free: 0.5469 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 9.38e-05/0.2328, allocations: 27.98 kB / 0.8362 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.2331, allocations: 46.86 kB / 0.8363 GB, free: 488 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.2357, allocations: 1.971 MB / 0.8382 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.2361, allocations: 0.728 MB / 0.8389 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.285e-05/0.2362, allocations: 25.05 kB / 0.8389 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.843e-05/0.2363, allocations: 55.41 kB / 0.839 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of SimCode: time 4.4e-07/0.2363, allocations: 0 / 0.839 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.2663, allocations: 4.834 MB / 0.8437 GB, free: 8.852 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.152/8.418, allocations: 1.531 kB / 0.8437 GB, free: 8.852 MB / 0.5919 GB " [Timeout remaining time 651] (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: 12.92573862010613] Failed to read output from testmodel.py, exit status != 0: 8.54753734311089 8.573819574 8.345134142 Calling exit ...