Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.365/1.365, allocations: 249.5 MB / 257 MB, free: 7.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009973/0.0009973, allocations: 172.9 kB / 316.3 MB, free: 3.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.3 MB / 0.5671 GB, free: 15.82 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009194/0.0009195, allocations: 95.69 kB / 0.6714 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.239e-05/2.242e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2564, allocations: 106.3 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8195/1.076, allocations: 135.9 MB / 1.018 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/1.076, allocations: 72.03 kB / 1.018 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01524/1.092, allocations: 5.364 MB / 1.023 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.525e-06/1.092, allocations: 0 / 1.023 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.49e-05/1.092, allocations: 0 / 1.023 GB, free: 13.14 MB / 0.6511 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.0006437/1.092, allocations: 468 kB / 1.024 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/1.092, allocations: 12.03 kB / 1.024 GB, free: 12.63 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.378e-05/1.092, allocations: 15.81 kB / 1.024 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/1.093, allocations: 260.8 kB / 1.024 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/1.093, allocations: 4 kB / 1.024 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/1.093, allocations: 4 kB / 1.024 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001037/1.093, allocations: 31.48 kB / 1.024 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/1.093, allocations: 94.3 kB / 1.024 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.996e-06/1.093, allocations: 0 / 1.024 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/1.093, allocations: 0 / 1.024 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/1.093, allocations: 4 kB / 1.024 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005317/1.094, allocations: 345.2 kB / 1.025 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001526/1.094, allocations: 84.89 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.112e-05/1.094, allocations: 28.03 kB / 1.025 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/1.094, allocations: 4 kB / 1.025 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/1.094, allocations: 78.42 kB / 1.025 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/1.094, allocations: 0 / 1.025 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8): time 0.0003016/1.094, allocations: 111.7 kB / 1.025 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/1.095, allocations: 110.8 kB / 1.025 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/1.095, allocations: 227.8 kB / 1.025 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2e-05/1.095, allocations: 25.7 kB / 1.025 GB, free: 11.24 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.579e-05/1.095, allocations: 125.5 kB / 1.025 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/1.095, allocations: 23.23 kB / 1.025 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.219e-06/1.095, allocations: 0 / 1.025 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001337/1.095, allocations: 334.1 kB / 1.026 GB, free: 10.79 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.524e-05/1.095, allocations: 23.38 kB / 1.026 GB, free: 10.78 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-05/1.095, allocations: 67.14 kB / 1.026 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.887e-05/1.095, allocations: 30.48 kB / 1.026 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.095, allocations: 0 / 1.026 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001737/1.096, allocations: 119.1 kB / 1.026 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/1.096, allocations: 8 kB / 1.026 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/1.096, allocations: 0 / 1.026 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/1.096, allocations: 0 / 1.026 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/1.096, allocations: 19.98 kB / 1.026 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/1.096, allocations: 0 / 1.026 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.407e-05/1.096, allocations: 4 kB / 1.026 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/1.096, allocations: 7.953 kB / 1.026 GB, free: 10.54 MB / 0.6511 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000102/1.096, allocations: 114.5 kB / 1.026 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001722/1.096, allocations: 111.5 kB / 1.026 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.42e-05/1.096, allocations: 15.81 kB / 1.026 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002281/1.096, allocations: 124.6 kB / 1.026 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/1.096, allocations: 4 kB / 1.026 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/1.096, allocations: 3.953 kB / 1.026 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/1.096, allocations: 0 / 1.026 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/1.097, allocations: 206.1 kB / 1.026 GB, free: 9.984 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/1.097, allocations: 0 / 1.026 GB, free: 9.984 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.461e-05/1.097, allocations: 11.94 kB / 1.026 GB, free: 9.973 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/1.097, allocations: 4.047 kB / 1.026 GB, free: 9.969 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/1.097, allocations: 3.984 kB / 1.026 GB, free: 9.965 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/1.097, allocations: 4.297 kB / 1.026 GB, free: 9.961 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.097, allocations: 0 / 1.026 GB, free: 9.961 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002075/1.097, allocations: 148.5 kB / 1.027 GB, free: 9.816 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.313e-05/1.097, allocations: 103.2 kB / 1.027 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/1.097, allocations: 0 / 1.027 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.073e-05/1.097, allocations: 7.984 kB / 1.027 GB, free: 9.695 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/1.097, allocations: 8 kB / 1.027 GB, free: 9.688 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/1.097, allocations: 11.05 kB / 1.027 GB, free: 9.68 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001644/1.097, allocations: 188.7 kB / 1.027 GB, free: 9.527 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.097, allocations: 0 / 1.027 GB, free: 9.527 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002835/1.098, allocations: 47.78 kB / 1.027 GB, free: 9.484 MB / 0.6511 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.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001234/1.099, allocations: 0.9449 MB / 1.028 GB, free: 8.621 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001869/1.099, allocations: 78.47 kB / 1.028 GB, free: 8.562 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/1.099, allocations: 0 / 1.028 GB, free: 8.562 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.177e-05/1.099, allocations: 37.36 kB / 1.028 GB, free: 8.535 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/1.099, allocations: 37.42 kB / 1.028 GB, free: 8.508 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005596/1.1, allocations: 280.7 kB / 1.028 GB, free: 8.227 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/1.1, allocations: 0.7233 MB / 1.029 GB, free: 7.48 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.521e-05/1.1, allocations: 21.52 kB / 1.029 GB, free: 7.461 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.322e-05/1.1, allocations: 54.84 kB / 1.029 GB, free: 7.434 MB / 0.6511 GB Notification: Performance of SimCode: time 2.61e-07/1.1, allocations: 4 kB / 1.029 GB, free: 7.43 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/1.122, allocations: 3.817 MB / 1.033 GB, free: 3.637 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/1.123, allocations: 177.8 kB / 1.033 GB, free: 3.445 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.559/2.681, allocations: 32 / 1.033 GB, free: 3.445 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)