Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001145, allocations: 100.2 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009285/0.0009284, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.093/1.093, allocations: 143.3 MB / 434.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003095/0.0003095, allocations: 12 kB / 0.5159 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.182, allocations: 83.41 MB / 0.5974 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.001987/0.184, allocations: 1.449 MB / 0.5988 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001376/0.1854, allocations: 0.9798 MB / 0.5997 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.411e-05/0.1855, allocations: 4 kB / 0.5997 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000244/0.1858, allocations: 51.75 kB / 0.5998 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.186, allocations: 63.84 kB / 0.5998 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005577/0.1865, allocations: 191.1 kB / 0.6 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001515/0.1867, allocations: 87.78 kB / 0.6001 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.206e-05/0.1868, allocations: 13.11 kB / 0.6001 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.732e-05/0.1869, allocations: 55.77 kB / 0.6002 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.832e-05/0.187, allocations: 55.75 kB / 0.6002 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.187, allocations: 3.938 kB / 0.6002 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.1871, allocations: 43.97 kB / 0.6003 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.941e-05/0.1872, allocations: 35.91 kB / 0.6003 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.288e-05/0.1873, allocations: 45.62 kB / 0.6003 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001827/0.1875, allocations: 147.9 kB / 0.6005 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.734e-06/0.1875, allocations: 4 kB / 0.6005 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.021e-06/0.1875, allocations: 0 / 0.6005 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.1875, allocations: 0 / 0.6005 GB, free: 4.492 MB / 0.4981 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.000581/0.1881, allocations: 468.3 kB / 0.6009 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.1881, allocations: 12.03 kB / 0.601 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.057e-05/0.1882, allocations: 34.56 kB / 0.601 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.001e-05/0.1882, allocations: 19.81 kB / 0.601 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.1885, allocations: 247.7 kB / 0.6012 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.1885, allocations: 4 kB / 0.6012 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.1886, allocations: 7.922 kB / 0.6012 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.1888, allocations: 92.23 kB / 0.6013 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-06/0.1888, allocations: 0 / 0.6013 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.1888, allocations: 0 / 0.6013 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.1888, allocations: 8 kB / 0.6013 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.1889, allocations: 35.91 kB / 0.6014 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005269/0.1895, allocations: 352.6 kB / 0.6017 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.1897, allocations: 94.69 kB / 0.6018 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.1897, allocations: 0 / 0.6018 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000231/0.19, allocations: 83.5 kB / 0.6019 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 3.727e-06/0.19, allocations: 0 / 0.6019 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0004621/0.1905, allocations: 226.5 kB / 0.6021 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.1905, allocations: 106.8 kB / 0.6022 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.1909, allocations: 263.7 kB / 0.6025 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.1909, allocations: 25.7 kB / 0.6025 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.971e-05/0.191, allocations: 120.1 kB / 0.6026 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.191, allocations: 19.72 kB / 0.6026 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-06/0.1911, allocations: 3.938 kB / 0.6026 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1912, allocations: 334.8 kB / 0.6029 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.876e-05/0.1913, allocations: 19.98 kB / 0.603 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.915e-05/0.1914, allocations: 64.28 kB / 0.603 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.362e-05/0.1915, allocations: 39.97 kB / 0.6031 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.1915, allocations: 0 / 0.6031 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002242/0.1917, allocations: 113.4 kB / 0.6032 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.1918, allocations: 4 kB / 0.6032 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.1918, allocations: 0 / 0.6032 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1918, allocations: 4 kB / 0.6032 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.992e-05/0.1919, allocations: 15.94 kB / 0.6032 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.1919, allocations: 4 kB / 0.6032 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.717e-05/0.192, allocations: 15.91 kB / 0.6032 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.192, allocations: 4 kB / 0.6032 GB, free: 1.418 MB / 0.4981 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.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00016/0.1922, allocations: 143.7 kB / 0.6033 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.714e-05/0.1922, allocations: 15.81 kB / 0.6034 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.211e-05/0.1923, allocations: 17.39 kB / 0.6034 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.1923, allocations: 4 kB / 0.6034 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.1923, allocations: 3.953 kB / 0.6034 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1923, allocations: 0 / 0.6034 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.1925, allocations: 225.5 kB / 0.6036 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1926, allocations: 7.984 kB / 0.6036 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.934e-05/0.1926, allocations: 8 kB / 0.6036 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1926, allocations: 0 / 0.6036 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.1926, allocations: 0 / 0.6036 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.1926, allocations: 0 / 0.6036 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1926, allocations: 3.938 kB / 0.6036 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002576/0.1929, allocations: 148.8 kB / 0.6038 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.631e-05/0.193, allocations: 93 kB / 0.6038 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.221e-05/0.193, allocations: 8 kB / 0.6039 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.804e-05/0.1931, allocations: 4 kB / 0.6039 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.698e-05/0.1932, allocations: 7.984 kB / 0.6039 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.1932, allocations: 0 / 0.6039 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002018/0.1934, allocations: 196.6 kB / 0.6041 GB, free: 460 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1934, allocations: 0 / 0.6041 GB, free: 460 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002869/0.1937, allocations: 39.86 kB / 0.6041 GB, free: 420 kB / 0.4981 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.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.3379/0.5316, allocations: 0.9994 MB / 0.6051 GB, free: 40.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003093/0.532, allocations: 70 kB / 0.6051 GB, free: 40.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.532, allocations: 1 kB / 0.6051 GB, free: 40.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.311e-05/0.5321, allocations: 38.19 kB / 0.6052 GB, free: 40.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.5324, allocations: 40.12 kB / 0.6052 GB, free: 40.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.5338, allocations: 1.094 MB / 0.6063 GB, free: 39.92 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002/0.5341, allocations: 0.7266 MB / 0.607 GB, free: 39.23 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.171e-05/0.5341, allocations: 22.56 kB / 0.607 GB, free: 39.23 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.524e-05/0.5342, allocations: 47.2 kB / 0.6071 GB, free: 39.22 MB / 0.4981 GB Notification: Performance of SimCode: time 4.41e-07/0.5342, allocations: 1.531 kB / 0.6071 GB, free: 39.22 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0138/0.5481, allocations: 4.147 MB / 0.6111 GB, free: 38.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001377/0.5482, allocations: 233.2 kB / 0.6113 GB, free: 38.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/2.322, allocations: 0 / 0.6113 GB, free: 38.65 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) Environment - environmentSimulation: