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.001278/0.001278, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001346/0.001346, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.436/1.436, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.002453/0.002453, allocations: 288.2 kB / 309.8 MB, free: 3.418 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.106/1.106, allocations: 180.6 MB / 0.5338 GB, free: 12.79 MB / 398.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="cs",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.002861/0.002861, allocations: 108.3 kB / 0.7347 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5646/0.5674, allocations: 95.34 MB / 0.8278 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002892/0.5703, allocations: 1.814 MB / 0.8296 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001657/0.572, allocations: 1.262 MB / 0.8308 GB, free: 0.9375 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.052e-05/0.5721, allocations: 3.938 kB / 0.8308 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003036/0.5724, allocations: 57.22 kB / 0.8309 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003163/0.5727, allocations: 122.2 kB / 0.831 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000486/0.5732, allocations: 194.3 kB / 0.8312 GB, free: 0.75 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002005/0.5734, allocations: 163.8 kB / 0.8313 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.671e-05/0.5735, allocations: 16.16 kB / 0.8313 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 9.544e-05/0.5736, allocations: 64.19 kB / 0.8314 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.5737, allocations: 79.08 kB / 0.8315 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.5737, allocations: 6.438 kB / 0.8315 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.5738, allocations: 76.31 kB / 0.8315 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.591e-05/0.5739, allocations: 40.2 kB / 0.8316 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 5.591e-05/0.574, allocations: 63.72 kB / 0.8316 GB, free: 0.5156 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.5742, allocations: 208.6 kB / 0.8318 GB, free: 444 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.5743, allocations: 3.938 kB / 0.8318 GB, free: 440 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5743, allocations: 1.438 kB / 0.8318 GB, free: 440 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.5743, allocations: 0 / 0.8318 GB, free: 440 kB / 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.0006691/0.5749, allocations: 0.4934 MB / 0.8323 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.575, allocations: 9.719 kB / 0.8323 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.946e-05/0.575, allocations: 7.062 kB / 0.8323 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.242e-05/0.575, allocations: 36.06 kB / 0.8324 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.094e-05/0.5751, allocations: 22.81 kB / 0.8324 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003536/0.5754, allocations: 253.3 kB / 0.8326 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.5754, allocations: 7.359 kB / 0.8326 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/0.5755, allocations: 7.625 kB / 0.8327 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.5757, allocations: 97.48 kB / 0.8327 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.5757, allocations: 4 kB / 0.8327 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.5757, allocations: 0 / 0.8327 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.5757, allocations: 4.531 kB / 0.8328 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.5758, allocations: 33.41 kB / 0.8328 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005431/0.5764, allocations: 363.6 kB / 0.8331 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002357/0.5766, allocations: 78.94 kB / 0.8332 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.869e-05/0.5767, allocations: 36.45 kB / 0.8332 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.5767, allocations: 0.7969 kB / 0.8332 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.5769, allocations: 79.86 kB / 0.8333 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=8): time 1.593e-06/0.5769, allocations: 3.938 kB / 0.8333 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of matching and sorting (n=8): time 0.000388/0.5773, allocations: 140.8 kB / 0.8335 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.364e-05/0.5774, allocations: 106.2 kB / 0.8336 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002866/0.5776, allocations: 279.3 kB / 0.8338 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.5777, allocations: 30.12 kB / 0.8339 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.142e-05/0.5778, allocations: 115 kB / 0.834 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.5778, allocations: 24.88 kB / 0.834 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-05/0.5779, allocations: 29.95 kB / 0.834 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.578, allocations: 330.9 kB / 0.8343 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.214e-05/0.5781, allocations: 23.03 kB / 0.8344 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.5782, allocations: 76.05 kB / 0.8344 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/0.5784, allocations: 67.55 kB / 0.8345 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5784, allocations: 0 / 0.8345 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002452/0.5786, allocations: 117.6 kB / 0.8346 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.5786, allocations: 6.688 kB / 0.8346 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.5786, allocations: 0.7969 kB / 0.8346 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.5786, allocations: 4.031 kB / 0.8346 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.366e-05/0.5787, allocations: 18.16 kB / 0.8346 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.5787, allocations: 4.328 kB / 0.8346 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.726e-05/0.5788, allocations: 12.33 kB / 0.8346 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.5788, allocations: 4.328 kB / 0.8347 GB, free: 14.07 MB / 0.5919 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.000145/0.579, allocations: 144.2 kB / 0.8348 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.08e-05/0.579, allocations: 17.02 kB / 0.8348 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.29e-05/0.579, allocations: 17.88 kB / 0.8348 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.579, allocations: 7.734 kB / 0.8348 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.5791, allocations: 3.938 kB / 0.8348 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.5791, allocations: 0.7969 kB / 0.8348 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002342/0.5793, allocations: 225.9 kB / 0.835 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.5793, allocations: 0.5156 kB / 0.835 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.881e-05/0.5793, allocations: 5.031 kB / 0.8351 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.5793, allocations: 0.8438 kB / 0.8351 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.5793, allocations: 2.875 kB / 0.8351 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.5793, allocations: 4.641 kB / 0.8351 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5794, allocations: 3.938 kB / 0.8351 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.5796, allocations: 147.7 kB / 0.8352 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.554e-05/0.5797, allocations: 100.8 kB / 0.8353 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.5797, allocations: 8.109 kB / 0.8353 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.427e-05/0.5798, allocations: 0.6562 kB / 0.8353 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.5798, allocations: 15.09 kB / 0.8353 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.5798, allocations: 5.344 kB / 0.8353 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002023/0.58, allocations: 204.1 kB / 0.8355 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.58, allocations: 0 / 0.8355 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002551/0.5803, allocations: 31.09 kB / 0.8356 GB, free: 13.36 MB / 0.5919 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.002068/0.5824, allocations: 1.005 MB / 0.8365 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0002486/0.5826, allocations: 73.53 kB / 0.8366 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5826, allocations: 4.062 kB / 0.8366 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 9.73e-05/0.5827, allocations: 25.39 kB / 0.8366 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.5831, allocations: 44.7 kB / 0.8367 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.5858, allocations: 1.981 MB / 0.8386 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.5862, allocations: 0.7269 MB / 0.8393 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000108/0.5863, allocations: 23.77 kB / 0.8393 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.5864, allocations: 52.25 kB / 0.8394 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of SimCode: time 4.41e-07/0.5864, allocations: 0 / 0.8394 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.023/0.6094, allocations: 4.874 MB / 0.8442 GB, free: 9.551 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.56/9.169, allocations: 15.47 kB / 0.8442 GB, free: 9.543 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.225319092045538] Failed to read output from testmodel.py, exit status != 0: 9.353563057025895 9.371290649 8.793827133 Calling exit ...