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.529/1.529, allocations: 249.3 MB / 261.8 MB, free: 5.961 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.001053/0.001053, allocations: 178.1 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.836/1.836, allocations: 205.2 MB / 0.572 GB, free: 10.71 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.000815/0.000815, allocations: 94.45 kB / 0.6764 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.157e-05/4.159e-05, allocations: 4 kB / 0.788 GB, free: 97.02 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2268, allocations: 106.3 MB / 0.8919 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7537/0.9806, allocations: 135.6 MB / 1.024 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.9809, allocations: 82.81 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01548/0.9964, allocations: 5.392 MB / 1.03 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.322e-06/0.9965, allocations: 0 / 1.03 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.557e-05/0.9965, allocations: 4 kB / 1.03 GB, free: 10.54 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.0005707/0.9971, allocations: 469.9 kB / 1.03 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.9971, allocations: 12.03 kB / 1.03 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.659e-05/0.9972, allocations: 33.88 kB / 1.03 GB, free: 9.988 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.788e-05/0.9972, allocations: 15.81 kB / 1.03 GB, free: 9.973 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.9976, allocations: 257.2 kB / 1.03 GB, free: 9.695 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.9976, allocations: 11.48 kB / 1.03 GB, free: 9.688 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.9977, allocations: 4 kB / 1.03 GB, free: 9.684 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.9978, allocations: 93.69 kB / 1.031 GB, free: 9.59 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.9979, allocations: 0 / 1.031 GB, free: 9.59 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.9979, allocations: 0 / 1.031 GB, free: 9.59 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.9979, allocations: 3.984 kB / 1.031 GB, free: 9.586 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.747e-05/0.998, allocations: 30.06 kB / 1.031 GB, free: 9.566 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005207/0.9985, allocations: 378.6 kB / 1.031 GB, free: 9.191 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.9987, allocations: 83.8 kB / 1.031 GB, free: 9.121 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.109e-05/0.9987, allocations: 35.34 kB / 1.031 GB, free: 9.094 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/0.9988, allocations: 0 / 1.031 GB, free: 9.094 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001669/0.9989, allocations: 94.06 kB / 1.031 GB, free: 9 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/0.9989, allocations: 4 kB / 1.031 GB, free: 8.996 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8): time 0.0002497/0.9992, allocations: 111.7 kB / 1.031 GB, free: 8.898 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.271e-05/0.9993, allocations: 106.8 kB / 1.031 GB, free: 8.77 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.9996, allocations: 241 kB / 1.032 GB, free: 8.562 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.9996, allocations: 32.95 kB / 1.032 GB, free: 8.527 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.465e-05/0.9997, allocations: 117.4 kB / 1.032 GB, free: 8.43 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/0.9997, allocations: 15.75 kB / 1.032 GB, free: 8.418 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.9997, allocations: 0 / 1.032 GB, free: 8.418 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001656/0.9999, allocations: 329.5 kB / 1.032 GB, free: 8.094 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.215e-05/1, allocations: 34 kB / 1.032 GB, free: 8.07 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.392e-05/1, allocations: 73.59 kB / 1.032 GB, free: 7.996 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.4e-05/1, allocations: 31.53 kB / 1.032 GB, free: 7.973 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/1, allocations: 0 / 1.032 GB, free: 7.973 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001721/1, allocations: 111 kB / 1.032 GB, free: 7.875 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/1, allocations: 11.98 kB / 1.032 GB, free: 7.863 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/1, allocations: 4.031 kB / 1.032 GB, free: 7.859 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/1, allocations: 4.031 kB / 1.032 GB, free: 7.855 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.638e-05/1, allocations: 12 kB / 1.032 GB, free: 7.844 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/1, allocations: 3.953 kB / 1.032 GB, free: 7.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.743e-05/1.001, allocations: 11.36 kB / 1.032 GB, free: 7.832 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/1.001, allocations: 4 kB / 1.032 GB, free: 7.828 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 8.448e-05/1.001, allocations: 114 kB / 1.032 GB, free: 7.715 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/1.001, allocations: 15.81 kB / 1.032 GB, free: 7.699 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002344/1.001, allocations: 131.6 kB / 1.033 GB, free: 7.59 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/1.001, allocations: 0 / 1.033 GB, free: 7.59 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.912e-06/1.001, allocations: 4 kB / 1.033 GB, free: 7.586 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/1.001, allocations: 3.953 kB / 1.033 GB, free: 7.582 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002037/1.001, allocations: 225.8 kB / 1.033 GB, free: 7.336 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/1.001, allocations: 4 kB / 1.033 GB, free: 7.332 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.262e-05/1.001, allocations: 11.88 kB / 1.033 GB, free: 7.32 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/1.001, allocations: 3.984 kB / 1.033 GB, free: 7.316 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/1.001, allocations: 6.875 kB / 1.033 GB, free: 7.312 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/1.001, allocations: 0 / 1.033 GB, free: 7.312 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/1.001, allocations: 4 kB / 1.033 GB, free: 7.309 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002054/1.002, allocations: 144.5 kB / 1.033 GB, free: 7.168 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.935e-05/1.002, allocations: 103.1 kB / 1.033 GB, free: 7.055 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.913e-05/1.002, allocations: 0 / 1.033 GB, free: 7.055 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.104e-05/1.002, allocations: 7.984 kB / 1.033 GB, free: 7.047 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.579e-05/1.002, allocations: 11.61 kB / 1.033 GB, free: 7.039 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/1.002, allocations: 0 / 1.033 GB, free: 7.039 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001858/1.002, allocations: 205.3 kB / 1.033 GB, free: 6.871 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.11e-07/1.002, allocations: 0 / 1.033 GB, free: 6.871 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000269/1.002, allocations: 50.78 kB / 1.033 GB, free: 6.828 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.001324/1.004, allocations: 0.9826 MB / 1.034 GB, free: 5.945 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002223/1.004, allocations: 85.83 kB / 1.034 GB, free: 5.879 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/1.004, allocations: 0 / 1.034 GB, free: 5.879 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.754e-05/1.004, allocations: 38.67 kB / 1.034 GB, free: 5.852 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/1.004, allocations: 33 kB / 1.034 GB, free: 5.828 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005948/1.005, allocations: 288.8 kB / 1.035 GB, free: 5.543 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/1.005, allocations: 0.7241 MB / 1.035 GB, free: 4.797 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.382e-05/1.005, allocations: 33.23 kB / 1.035 GB, free: 4.766 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.719e-05/1.005, allocations: 55.34 kB / 1.036 GB, free: 4.738 MB / 0.6511 GB Notification: Performance of SimCode: time 3.41e-07/1.005, allocations: 0 / 1.036 GB, free: 4.738 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01491/1.02, allocations: 4.219 MB / 1.04 GB, free: 0.6094 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/1.02, allocations: 205.1 kB / 1.04 GB, free: 392 kB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/2.725, allocations: 0 / 1.04 GB, free: 392 kB / 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)