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.001396/0.001396, allocations: 107.6 kB / 18.95 MB, free: 2.805 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.001934/0.001934, allocations: 213.1 kB / 22.24 MB, free: 5.117 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.475/1.475, allocations: 230.6 MB / 256 MB, free: 7.781 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.003866/0.003866, allocations: 294.5 kB / 312.7 MB, free: 2.594 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.291/1.291, allocations: 180.6 MB / 0.5369 GB, free: 14.59 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="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.002987/0.002987, allocations: 101.1 kB / 0.7395 GB, free: 28.03 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.185, allocations: 95.38 MB / 0.8326 GB, free: 8.25 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003547/0.1886, allocations: 1.779 MB / 0.8344 GB, free: 6.461 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002401/0.191, allocations: 1.193 MB / 0.8355 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.1911, allocations: 0 / 0.8355 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003433/0.1914, allocations: 63.67 kB / 0.8356 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000413/0.1919, allocations: 123.5 kB / 0.8357 GB, free: 5.074 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006014/0.1925, allocations: 199.5 kB / 0.8359 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.1927, allocations: 159.5 kB / 0.8361 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.738e-05/0.1928, allocations: 9.641 kB / 0.8361 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.1929, allocations: 71.7 kB / 0.8361 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.1931, allocations: 71.73 kB / 0.8362 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.1931, allocations: 4 kB / 0.8362 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.1933, allocations: 87.86 kB / 0.8363 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.1934, allocations: 43.84 kB / 0.8363 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.093e-05/0.1935, allocations: 39.73 kB / 0.8364 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003526/0.1939, allocations: 207.5 kB / 0.8366 GB, free: 4.191 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1939, allocations: 0 / 0.8366 GB, free: 4.191 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.493e-06/0.1939, allocations: 3.938 kB / 0.8366 GB, free: 4.188 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.1939, allocations: 0 / 0.8366 GB, free: 4.188 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.0007812/0.1947, allocations: 434.8 kB / 0.837 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.1947, allocations: 13.34 kB / 0.837 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.238e-05/0.1948, allocations: 34.75 kB / 0.837 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.491e-05/0.1948, allocations: 20.84 kB / 0.8371 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.1952, allocations: 198.1 kB / 0.8373 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.1953, allocations: 4.375 kB / 0.8373 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.1953, allocations: 7.938 kB / 0.8373 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.1955, allocations: 117 kB / 0.8374 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.1955, allocations: 0 / 0.8374 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.1955, allocations: 3.984 kB / 0.8374 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.1956, allocations: 3.984 kB / 0.8374 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001242/0.1957, allocations: 35.98 kB / 0.8374 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005917/0.1963, allocations: 319.8 kB / 0.8377 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/0.1965, allocations: 82.67 kB / 0.8378 GB, free: 2.801 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.258e-05/0.1966, allocations: 40.77 kB / 0.8378 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.1966, allocations: 0 / 0.8378 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001966/0.1968, allocations: 87.39 kB / 0.8379 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.623e-06/0.1968, allocations: 3.938 kB / 0.8379 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.0004106/0.1972, allocations: 145.5 kB / 0.8381 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/0.1973, allocations: 85.09 kB / 0.8381 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003117/0.1976, allocations: 275.1 kB / 0.8384 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.1976, allocations: 29.7 kB / 0.8384 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.381e-05/0.1977, allocations: 124.1 kB / 0.8386 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.062e-05/0.1978, allocations: 19.8 kB / 0.8386 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.427e-05/0.1978, allocations: 33.64 kB / 0.8386 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000155/0.198, allocations: 326.8 kB / 0.8389 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.068e-05/0.1981, allocations: 27.98 kB / 0.8389 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.1982, allocations: 114.8 kB / 0.8391 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001689/0.1984, allocations: 69.7 kB / 0.8391 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1984, allocations: 0 / 0.8391 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002539/0.1986, allocations: 125.5 kB / 0.8392 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.1986, allocations: 4 kB / 0.8392 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.1986, allocations: 4 kB / 0.8393 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.1987, allocations: 0 / 0.8393 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.926e-05/0.1988, allocations: 11.98 kB / 0.8393 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.1988, allocations: 7.938 kB / 0.8393 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.195e-05/0.1988, allocations: 11.89 kB / 0.8393 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.1988, allocations: 4 kB / 0.8393 GB, free: 1.168 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.0001552/0.199, allocations: 143.2 kB / 0.8394 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.199, allocations: 19.94 kB / 0.8394 GB, free: 1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003147/0.1994, allocations: 131 kB / 0.8396 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.1994, allocations: 0 / 0.8396 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1994, allocations: 4 kB / 0.8396 GB, free: 0.8594 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.1994, allocations: 7.922 kB / 0.8396 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000219/0.1996, allocations: 188.6 kB / 0.8398 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1996, allocations: 0 / 0.8398 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.597e-05/0.1996, allocations: 7.938 kB / 0.8398 GB, free: 0.6172 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1996, allocations: 0 / 0.8398 GB, free: 0.6172 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.1997, allocations: 8.188 kB / 0.8398 GB, free: 0.6094 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1997, allocations: 4 kB / 0.8398 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1997, allocations: 7.922 kB / 0.8398 GB, free: 0.5977 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003073/0.2, allocations: 156.8 kB / 0.8399 GB, free: 436 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.259e-05/0.2, allocations: 15.91 kB / 0.8399 GB, free: 420 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.2, allocations: 0 / 0.8399 GB, free: 420 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.787e-05/0.2001, allocations: 4 kB / 0.84 GB, free: 416 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.2002, allocations: 15.92 kB / 0.84 GB, free: 400 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.2002, allocations: 3.984 kB / 0.84 GB, free: 396 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002229/0.2004, allocations: 199.2 kB / 0.8402 GB, free: 196 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.2004, allocations: 0 / 0.8402 GB, free: 196 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000269/0.2007, allocations: 43.92 kB / 0.8402 GB, free: 152 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.00229/0.2029, allocations: 1.034 MB / 0.8412 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0002477/0.2032, allocations: 67.91 kB / 0.8413 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2032, allocations: 3.938 kB / 0.8413 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.2033, allocations: 39.95 kB / 0.8413 GB, free: 15.17 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.2036, allocations: 49.27 kB / 0.8414 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.2061, allocations: 1.998 MB / 0.8433 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.2062, allocations: 110.6 kB / 0.8434 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.075e-05/0.2063, allocations: 21.42 kB / 0.8434 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.2064, allocations: 51.41 kB / 0.8435 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of SimCode: time 6.81e-07/0.2064, allocations: 4 kB / 0.8435 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0342/0.2406, allocations: 5.497 MB / 0.8489 GB, free: 7.422 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.31, allocations: 8.375 kB / 0.8489 GB, free: 7.418 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 & /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 sys.exit(0), Time elapsed: 15.721306350082159] Failed to read output from testmodel.py, exit status != 0: 11.46988167706877 11.497162849 11.298459844 Calling exit ...