Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009623/0.0009622, allocations: 179.9 kB / 13.19 MB, free: 2.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4464/0.4464, allocations: 90.81 MB / 104.5 MB, free: 9.789 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.215/1.215, allocations: 221.3 MB / 348.3 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008651/0.000865, allocations: 99.83 kB / 421.2 MB, free: 5.492 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.527e-05/3.538e-05, allocations: 4 kB / 0.4897 GB, free: 5.273 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3525, allocations: 72.31 MB / 0.5603 GB, free: 40.42 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1183/0.4708, allocations: 105.9 MB / 0.6637 GB, free: 14.39 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.4711, allocations: 75.95 kB / 0.6638 GB, free: 14.31 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01485/0.486, allocations: 5.545 MB / 0.6692 GB, free: 8.789 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.486, allocations: 0 / 0.6692 GB, free: 8.789 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.059e-05/0.486, allocations: 7.984 kB / 0.6692 GB, free: 8.781 MB / 490.7 MB 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.0005281/0.4866, allocations: 471.7 kB / 0.6697 GB, free: 8.27 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.4866, allocations: 11.98 kB / 0.6697 GB, free: 8.258 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.695e-05/0.4867, allocations: 35.83 kB / 0.6697 GB, free: 8.215 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.56e-05/0.4867, allocations: 19.72 kB / 0.6697 GB, free: 8.195 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.4871, allocations: 259.7 kB / 0.67 GB, free: 7.898 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.4871, allocations: 3.984 kB / 0.67 GB, free: 7.895 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.94e-05/0.4871, allocations: 8 kB / 0.67 GB, free: 7.887 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.4873, allocations: 92.19 kB / 0.6701 GB, free: 7.781 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.4873, allocations: 0 / 0.6701 GB, free: 7.781 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.4874, allocations: 0 / 0.6701 GB, free: 7.781 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.4874, allocations: 15.78 kB / 0.6701 GB, free: 7.77 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.164e-05/0.4875, allocations: 32 kB / 0.6701 GB, free: 7.738 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005089/0.488, allocations: 372.6 kB / 0.6705 GB, free: 7.324 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.4882, allocations: 82.67 kB / 0.6706 GB, free: 7.234 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.903e-05/0.4882, allocations: 40.94 kB / 0.6706 GB, free: 7.191 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.4883, allocations: 3.953 kB / 0.6706 GB, free: 7.188 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/0.4884, allocations: 71.39 kB / 0.6707 GB, free: 7.105 MB / 490.7 MB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.4884, allocations: 0 / 0.6707 GB, free: 7.105 MB / 490.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002581/0.4887, allocations: 109.5 kB / 0.6708 GB, free: 6.992 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.4888, allocations: 114.8 kB / 0.6709 GB, free: 6.855 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002728/0.4891, allocations: 241.7 kB / 0.6711 GB, free: 6.609 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.4891, allocations: 29.7 kB / 0.6711 GB, free: 6.574 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.479e-05/0.4892, allocations: 116 kB / 0.6713 GB, free: 6.457 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.4892, allocations: 27.75 kB / 0.6713 GB, free: 6.43 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-06/0.4892, allocations: 0 / 0.6713 GB, free: 6.43 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.4894, allocations: 330.8 kB / 0.6716 GB, free: 6.098 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.774e-05/0.4894, allocations: 24 kB / 0.6716 GB, free: 6.074 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.503e-05/0.4895, allocations: 72.28 kB / 0.6717 GB, free: 5.988 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.571e-05/0.4896, allocations: 31.98 kB / 0.6717 GB, free: 5.957 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4896, allocations: 0 / 0.6717 GB, free: 5.957 MB / 490.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000179/0.4898, allocations: 115.5 kB / 0.6718 GB, free: 5.84 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.4898, allocations: 7.984 kB / 0.6718 GB, free: 5.832 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.4898, allocations: 0 / 0.6718 GB, free: 5.832 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.4899, allocations: 8.031 kB / 0.6718 GB, free: 5.824 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.457e-05/0.49, allocations: 8 kB / 0.6719 GB, free: 5.816 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.49, allocations: 0 / 0.6719 GB, free: 5.816 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.025e-05/0.4901, allocations: 19.83 kB / 0.6719 GB, free: 5.797 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.4901, allocations: 4 kB / 0.6719 GB, free: 5.793 MB / 490.7 MB 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 9.49e-05/0.4902, allocations: 118.6 kB / 0.672 GB, free: 5.672 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.705e-05/0.4902, allocations: 15.77 kB / 0.672 GB, free: 5.656 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002355/0.4905, allocations: 132.1 kB / 0.6721 GB, free: 5.523 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.4905, allocations: 8 kB / 0.6721 GB, free: 5.516 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4905, allocations: 0 / 0.6721 GB, free: 5.516 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.4905, allocations: 0 / 0.6721 GB, free: 5.516 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.4907, allocations: 225.6 kB / 0.6724 GB, free: 5.246 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4907, allocations: 4 kB / 0.6724 GB, free: 5.242 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.429e-05/0.4908, allocations: 4 kB / 0.6724 GB, free: 5.238 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.4908, allocations: 4 kB / 0.6724 GB, free: 5.234 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.4908, allocations: 11.88 kB / 0.6724 GB, free: 5.223 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4908, allocations: 0 / 0.6724 GB, free: 5.223 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.4908, allocations: 2.297 kB / 0.6724 GB, free: 5.223 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002113/0.4911, allocations: 156.8 kB / 0.6725 GB, free: 5.051 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.889e-05/0.4911, allocations: 100.9 kB / 0.6726 GB, free: 4.934 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.4912, allocations: 0 / 0.6726 GB, free: 4.934 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.394e-05/0.4912, allocations: 11.94 kB / 0.6726 GB, free: 4.922 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.184e-05/0.4913, allocations: 15.97 kB / 0.6727 GB, free: 4.906 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.4913, allocations: 4 kB / 0.6727 GB, free: 4.902 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001892/0.4915, allocations: 192.4 kB / 0.6728 GB, free: 4.715 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4915, allocations: 4 kB / 0.6728 GB, free: 4.711 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002611/0.4918, allocations: 47.94 kB / 0.6729 GB, free: 4.664 MB / 490.7 MB 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.001402/0.4932, allocations: 0.9703 MB / 0.6738 GB, free: 3.812 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0002338/0.4935, allocations: 79.91 kB / 0.6739 GB, free: 3.734 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4935, allocations: 4.062 kB / 0.6739 GB, free: 3.73 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 9.394e-05/0.4936, allocations: 39.92 kB / 0.674 GB, free: 3.691 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.4939, allocations: 35.92 kB / 0.674 GB, free: 3.656 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000755/0.4946, allocations: 292.9 kB / 0.6743 GB, free: 3.336 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.495, allocations: 0.7243 MB / 0.675 GB, free: 2.586 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 9.096e-05/0.4951, allocations: 28.72 kB / 0.675 GB, free: 2.559 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.16e-05/0.4952, allocations: 55.41 kB / 0.6751 GB, free: 2.508 MB / 490.7 MB Notification: Performance of SimCode: time 7.52e-07/0.4952, allocations: 0 / 0.6751 GB, free: 2.508 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01663/0.5118, allocations: 4.224 MB / 0.6792 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002076/0.5121, allocations: 191.9 kB / 0.6794 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.506/2.018, allocations: 0 / 0.6794 GB, free: 14.2 MB / 0.4948 GB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)