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.001303/0.001303, allocations: 97.31 kB / 19.73 MB, free: 2.145 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.001555/0.001555, allocations: 218.9 kB / 23.03 MB, free: 4.953 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.485/1.485, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.004424/0.004424, allocations: 286.8 kB / 313.5 MB, free: 2.602 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.236/1.236, allocations: 180.6 MB / 0.5377 GB, free: 14.6 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 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.002781/0.002781, allocations: 95.42 kB / 0.7403 GB, free: 27.82 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.1863, allocations: 95.4 MB / 0.8334 GB, free: 8.316 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.004876/0.1912, allocations: 1.781 MB / 0.8352 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002971/0.1942, allocations: 1.178 MB / 0.8363 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.1943, allocations: 0 / 0.8363 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003891/0.1947, allocations: 63.67 kB / 0.8364 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005009/0.1952, allocations: 123.5 kB / 0.8365 GB, free: 5.156 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008144/0.196, allocations: 197.3 kB / 0.8367 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003346/0.1964, allocations: 163.5 kB / 0.8368 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.1965, allocations: 13.62 kB / 0.8368 GB, free: 4.785 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.1967, allocations: 71.7 kB / 0.8369 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.1968, allocations: 67.73 kB / 0.837 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.1969, allocations: 8 kB / 0.837 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002754/0.1971, allocations: 95.86 kB / 0.8371 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.1972, allocations: 39.84 kB / 0.8371 GB, free: 4.508 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.237e-05/0.1973, allocations: 43.69 kB / 0.8372 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004636/0.1978, allocations: 211.5 kB / 0.8374 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1978, allocations: 0 / 0.8374 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.512e-06/0.1978, allocations: 0 / 0.8374 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.223e-06/0.1978, allocations: 0 / 0.8374 GB, free: 4.258 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.0009003/0.1987, allocations: 438.8 kB / 0.8378 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.1988, allocations: 9.938 kB / 0.8378 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.206e-05/0.1988, allocations: 192 / 0.8378 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.626e-05/0.1988, allocations: 42.75 kB / 0.8378 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.023e-05/0.1989, allocations: 20.84 kB / 0.8378 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000522/0.1994, allocations: 202 kB / 0.838 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.1994, allocations: 8.125 kB / 0.838 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.1995, allocations: 0 / 0.838 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003331/0.1998, allocations: 155.6 kB / 0.8382 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1998, allocations: 0 / 0.8382 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.1998, allocations: 0 / 0.8382 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.1998, allocations: 3.938 kB / 0.8382 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000152/0.2, allocations: 39.97 kB / 0.8382 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006892/0.2007, allocations: 315.8 kB / 0.8385 GB, free: 2.91 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/0.201, allocations: 82.66 kB / 0.8386 GB, free: 2.82 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.2011, allocations: 32.84 kB / 0.8386 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.2011, allocations: 8.031 kB / 0.8387 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003051/0.2014, allocations: 83.36 kB / 0.8387 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.953e-06/0.2014, allocations: 0 / 0.8387 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.000512/0.2019, allocations: 145.7 kB / 0.8389 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.509e-05/0.202, allocations: 102.8 kB / 0.839 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004143/0.2024, allocations: 283.1 kB / 0.8392 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.2025, allocations: 29.7 kB / 0.8393 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.2026, allocations: 124 kB / 0.8394 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.032e-05/0.2027, allocations: 23.84 kB / 0.8394 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.252e-05/0.2027, allocations: 29.7 kB / 0.8394 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001837/0.2029, allocations: 330.8 kB / 0.8398 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.203, allocations: 27.98 kB / 0.8398 GB, free: 1.543 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.2032, allocations: 145.4 kB / 0.8399 GB, free: 1.367 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.2035, allocations: 73.77 kB / 0.84 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2035, allocations: 7.938 kB / 0.84 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003291/0.2038, allocations: 109.6 kB / 0.8401 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2038, allocations: 7.984 kB / 0.8401 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2038, allocations: 0 / 0.8401 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.2038, allocations: 4.188 kB / 0.8401 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.204, allocations: 11.94 kB / 0.8401 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.204, allocations: 7.875 kB / 0.8401 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.677e-05/0.2041, allocations: 15.98 kB / 0.8401 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.2041, allocations: 7.984 kB / 0.8402 GB, free: 1.113 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.0001954/0.2043, allocations: 151.2 kB / 0.8403 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.49e-05/0.2043, allocations: 15.91 kB / 0.8403 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004434/0.2048, allocations: 131 kB / 0.8404 GB, free: 0.8047 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.329e-05/0.2048, allocations: 8 kB / 0.8404 GB, free: 0.7969 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.2048, allocations: 7.875 kB / 0.8405 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.2048, allocations: 0 / 0.8405 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002587/0.205, allocations: 180.7 kB / 0.8406 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2051, allocations: 4 kB / 0.8406 GB, free: 0.5664 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.175e-05/0.2051, allocations: 7.984 kB / 0.8406 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.2051, allocations: 4 kB / 0.8406 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.2051, allocations: 4 kB / 0.8406 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2051, allocations: 0 / 0.8406 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.83e-06/0.2051, allocations: 3.938 kB / 0.8406 GB, free: 0.5469 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004143/0.2056, allocations: 152.9 kB / 0.8408 GB, free: 388 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.428e-05/0.2056, allocations: 19.89 kB / 0.8408 GB, free: 368 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.899e-05/0.2056, allocations: 4 kB / 0.8408 GB, free: 364 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.399e-05/0.2057, allocations: 4 kB / 0.8408 GB, free: 360 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.877e-05/0.2058, allocations: 15.92 kB / 0.8408 GB, free: 344 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/0.2058, allocations: 7.984 kB / 0.8408 GB, free: 336 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002751/0.2061, allocations: 195.2 kB / 0.841 GB, free: 140 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2061, allocations: 4 kB / 0.841 GB, free: 136 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004104/0.2065, allocations: 35.94 kB / 0.8411 GB, free: 100 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 (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.002875/0.2094, allocations: 1.037 MB / 0.8421 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003134/0.2097, allocations: 75.91 kB / 0.8422 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2097, allocations: 0 / 0.8422 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.2098, allocations: 31.98 kB / 0.8422 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004285/0.2102, allocations: 46.34 kB / 0.8422 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00364/0.2139, allocations: 1.997 MB / 0.8442 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.214, allocations: 110.6 kB / 0.8443 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001117/0.2141, allocations: 25.38 kB / 0.8443 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.2143, allocations: 51.42 kB / 0.8444 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of SimCode: time 4.21e-07/0.2143, allocations: 0 / 0.8444 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03346/0.2477, allocations: 5.255 MB / 0.8495 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.64, allocations: 4.062 kB / 0.8495 GB, free: 7.645 MB / 0.5919 GB " [Timeout remaining time 648] (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: 16.04938055900857] Failed to read output from testmodel.py, exit status != 0: 11.856916463002563 11.873947544 11.672642509 Calling exit ...