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.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005591/0.005591, allocations: 103 kB / 15.73 MB, free: 6.035 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.001409/0.001409, allocations: 201.5 kB / 16.68 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 4.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00205/0.00205, allocations: 286.8 kB / 290.8 MB, free: 1.797 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9231/0.9231, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 92.38 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1526, allocations: 86.97 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002951/0.1556, allocations: 1.761 MB / 0.7676 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001686/0.1573, allocations: 1.108 MB / 0.7687 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.1574, allocations: 4 kB / 0.7687 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002874/0.1577, allocations: 59.67 kB / 0.7688 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002434/0.158, allocations: 71.67 kB / 0.7688 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006117/0.1586, allocations: 227.1 kB / 0.7691 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002013/0.1588, allocations: 147.6 kB / 0.7692 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.1589, allocations: 29.33 kB / 0.7692 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.159, allocations: 67.69 kB / 0.7693 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.1592, allocations: 63.75 kB / 0.7694 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.1592, allocations: 8 kB / 0.7694 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.1593, allocations: 75.94 kB / 0.7694 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.948e-05/0.1594, allocations: 39.8 kB / 0.7695 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.161e-05/0.1595, allocations: 55.67 kB / 0.7695 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002852/0.1598, allocations: 199.4 kB / 0.7697 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1598, allocations: 0 / 0.7697 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1598, allocations: 0 / 0.7697 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.95e-06/0.1598, allocations: 0 / 0.7697 GB, free: 5.02 MB / 0.5606 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.0006126/0.1605, allocations: 496.2 kB / 0.7702 GB, free: 4.48 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1605, allocations: 11.97 kB / 0.7702 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.491e-05/0.1605, allocations: 38.75 kB / 0.7702 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.045e-05/0.1606, allocations: 20.73 kB / 0.7703 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.1609, allocations: 249.4 kB / 0.7705 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.1609, allocations: 8.375 kB / 0.7705 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.161, allocations: 11.88 kB / 0.7705 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.1612, allocations: 104.1 kB / 0.7706 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.1612, allocations: 0 / 0.7706 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.1612, allocations: 0 / 0.7706 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.1612, allocations: 0 / 0.7706 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.798e-05/0.1613, allocations: 31.98 kB / 0.7706 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/0.1618, allocations: 356.7 kB / 0.771 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002062/0.162, allocations: 86.66 kB / 0.7711 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.835e-05/0.1621, allocations: 32.84 kB / 0.7711 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.1621, allocations: 3.984 kB / 0.7711 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000169/0.1623, allocations: 87.41 kB / 0.7712 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.1623, allocations: 0 / 0.7712 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0003378/0.1627, allocations: 141.7 kB / 0.7713 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.1627, allocations: 106.8 kB / 0.7714 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002344/0.163, allocations: 267 kB / 0.7717 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.163, allocations: 25.7 kB / 0.7717 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.2e-05/0.1631, allocations: 116.1 kB / 0.7718 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.1631, allocations: 19.75 kB / 0.7718 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.1632, allocations: 33.64 kB / 0.7719 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.1633, allocations: 330.8 kB / 0.7722 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.042e-05/0.1633, allocations: 23.98 kB / 0.7722 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.832e-05/0.1634, allocations: 68.2 kB / 0.7723 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.1636, allocations: 73.69 kB / 0.7723 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.1636, allocations: 0 / 0.7723 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002089/0.1638, allocations: 113.4 kB / 0.7724 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.1638, allocations: 7.984 kB / 0.7725 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1638, allocations: 4 kB / 0.7725 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1639, allocations: 0 / 0.7725 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.564e-05/0.1639, allocations: 8 kB / 0.7725 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.164, allocations: 4.188 kB / 0.7725 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.115e-05/0.164, allocations: 19.83 kB / 0.7725 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.1641, allocations: 7.969 kB / 0.7725 GB, free: 1.887 MB / 0.5606 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.0001243/0.1642, allocations: 149.8 kB / 0.7726 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.1642, allocations: 15.81 kB / 0.7727 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.508e-05/0.1643, allocations: 17.39 kB / 0.7727 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.1643, allocations: 4 kB / 0.7727 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1643, allocations: 0 / 0.7727 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1643, allocations: 3.938 kB / 0.7727 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001811/0.1645, allocations: 217.6 kB / 0.7729 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1645, allocations: 4 kB / 0.7729 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.033e-05/0.1645, allocations: 12 kB / 0.7729 GB, free: 1.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.1646, allocations: 0 / 0.7729 GB, free: 1.41 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.1646, allocations: 3.984 kB / 0.7729 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1646, allocations: 0 / 0.7729 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1646, allocations: 0 / 0.7729 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002309/0.1648, allocations: 140.8 kB / 0.773 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.667e-05/0.1649, allocations: 100.8 kB / 0.7731 GB, free: 1.133 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.1649, allocations: 4 kB / 0.7731 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.414e-05/0.165, allocations: 8 kB / 0.7731 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.647e-05/0.165, allocations: 11.92 kB / 0.7732 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.1651, allocations: 4 kB / 0.7732 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001701/0.1652, allocations: 197 kB / 0.7733 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1652, allocations: 0 / 0.7733 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002482/0.1655, allocations: 32 kB / 0.7734 GB, free: 0.8828 MB / 0.5606 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 (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.00135/0.1668, allocations: 1.001 MB / 0.7744 GB, free: 16 kB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.3044/0.4713, allocations: 68.39 kB / 0.7744 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4713, allocations: 0.5625 kB / 0.7744 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.4714, allocations: 37.95 kB / 0.7745 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003666/0.4718, allocations: 40.47 kB / 0.7745 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.4739, allocations: 1.95 MB / 0.7764 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.474, allocations: 0.7209 MB / 0.7771 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.571e-05/0.4741, allocations: 26.83 kB / 0.7771 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.593e-05/0.4742, allocations: 50.88 kB / 0.7772 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of SimCode: time 8.41e-07/0.4742, allocations: 0 / 0.7772 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02175/0.4959, allocations: 4.746 MB / 0.7818 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.178/7.674, allocations: 9.953 kB / 0.7818 GB, free: 12.31 MB / 0.5606 GB (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 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)