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/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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007856/0.0007855, allocations: 92.95 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000899/0.0008992, allocations: 181.9 kB / 16.91 MB, free: 6.914 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.366/1.366, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6967/0.6967, allocations: 115.5 MB / 407.6 MB, free: 2.75 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004759/0.0004764, allocations: 8.281 kB / 495.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.154, allocations: 77.55 MB / 0.56 GB, free: 8.953 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.002898/0.157, allocations: 1.475 MB / 0.5615 GB, free: 7.465 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00233/0.1593, allocations: 1.061 MB / 0.5625 GB, free: 6.395 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.1595, allocations: 4 kB / 0.5625 GB, free: 6.391 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004036/0.1599, allocations: 51.81 kB / 0.5626 GB, free: 6.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002992/0.1603, allocations: 71.72 kB / 0.5626 GB, free: 6.27 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007618/0.161, allocations: 190.8 kB / 0.5628 GB, free: 6.086 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002755/0.1613, allocations: 131.7 kB / 0.563 GB, free: 5.957 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.1615, allocations: 33.08 kB / 0.563 GB, free: 5.926 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.1616, allocations: 59.64 kB / 0.563 GB, free: 5.867 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.1617, allocations: 55.75 kB / 0.5631 GB, free: 5.812 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.1618, allocations: 4 kB / 0.5631 GB, free: 5.809 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.162, allocations: 63.89 kB / 0.5632 GB, free: 5.746 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.964e-05/0.1621, allocations: 31.91 kB / 0.5632 GB, free: 5.715 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.518e-05/0.1622, allocations: 73.33 kB / 0.5633 GB, free: 5.637 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003553/0.1626, allocations: 195.6 kB / 0.5634 GB, free: 5.445 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1626, allocations: 4 kB / 0.5634 GB, free: 5.441 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1626, allocations: 4 kB / 0.5635 GB, free: 5.438 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.1626, allocations: 0 / 0.5635 GB, free: 5.438 MB / 430.1 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.0008076/0.1634, allocations: 464.5 kB / 0.5639 GB, free: 4.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.714e-05/0.1635, allocations: 8.031 kB / 0.5639 GB, free: 4.922 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.886e-05/0.1636, allocations: 42.73 kB / 0.5639 GB, free: 4.871 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.228e-05/0.1636, allocations: 16.75 kB / 0.564 GB, free: 4.855 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003786/0.164, allocations: 240.9 kB / 0.5642 GB, free: 4.578 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.1641, allocations: 12.38 kB / 0.5642 GB, free: 4.566 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.066e-05/0.1641, allocations: 7.938 kB / 0.5642 GB, free: 4.559 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002587/0.1643, allocations: 100.1 kB / 0.5643 GB, free: 4.445 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1644, allocations: 0 / 0.5643 GB, free: 4.445 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1644, allocations: 4 kB / 0.5643 GB, free: 4.441 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.748e-05/0.1644, allocations: 4 kB / 0.5643 GB, free: 4.438 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001353/0.1646, allocations: 27.98 kB / 0.5643 GB, free: 4.41 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006954/0.1653, allocations: 368.5 kB / 0.5647 GB, free: 4 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002547/0.1655, allocations: 86.66 kB / 0.5648 GB, free: 3.906 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.013e-05/0.1656, allocations: 28.84 kB / 0.5648 GB, free: 3.875 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.1657, allocations: 4 kB / 0.5648 GB, free: 3.871 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002748/0.166, allocations: 91.41 kB / 0.5649 GB, free: 3.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 2.214e-06/0.166, allocations: 0 / 0.5649 GB, free: 3.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004435/0.1664, allocations: 133.5 kB / 0.565 GB, free: 3.633 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.346e-05/0.1665, allocations: 114.8 kB / 0.5651 GB, free: 3.496 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.1668, allocations: 266.6 kB / 0.5654 GB, free: 3.227 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.1669, allocations: 29.7 kB / 0.5654 GB, free: 3.191 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.39e-05/0.1669, allocations: 112.1 kB / 0.5655 GB, free: 3.078 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.108e-05/0.167, allocations: 19.81 kB / 0.5655 GB, free: 3.059 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.265e-05/0.167, allocations: 21.7 kB / 0.5656 GB, free: 3.031 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1672, allocations: 326.8 kB / 0.5659 GB, free: 2.703 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.113e-05/0.1672, allocations: 31.92 kB / 0.5659 GB, free: 2.672 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.883e-05/0.1673, allocations: 64.27 kB / 0.566 GB, free: 2.594 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.1675, allocations: 69.7 kB / 0.566 GB, free: 2.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1675, allocations: 0 / 0.566 GB, free: 2.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002384/0.1677, allocations: 117.4 kB / 0.5661 GB, free: 2.398 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1678, allocations: 4 kB / 0.5661 GB, free: 2.395 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1678, allocations: 0 / 0.5661 GB, free: 2.395 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.1678, allocations: 7.984 kB / 0.5662 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.419e-05/0.1679, allocations: 8 kB / 0.5662 GB, free: 2.379 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.1679, allocations: 0 / 0.5662 GB, free: 2.379 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.396e-05/0.168, allocations: 23.72 kB / 0.5662 GB, free: 2.355 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.168, allocations: 12.02 kB / 0.5662 GB, free: 2.344 MB / 430.1 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 ($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.0001497/0.1682, allocations: 142.8 kB / 0.5663 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.913e-05/0.1682, allocations: 15.81 kB / 0.5663 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.714e-05/0.1683, allocations: 13.41 kB / 0.5664 GB, free: 2.168 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.1683, allocations: 7.984 kB / 0.5664 GB, free: 2.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.1683, allocations: 192 / 0.5664 GB, free: 2.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.1683, allocations: 3.938 kB / 0.5664 GB, free: 2.156 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.1686, allocations: 225.5 kB / 0.5666 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1686, allocations: 0 / 0.5666 GB, free: 1.887 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.37e-05/0.1686, allocations: 12.05 kB / 0.5666 GB, free: 1.875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.1686, allocations: 3.984 kB / 0.5666 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.1686, allocations: 0 / 0.5666 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.1687, allocations: 3.984 kB / 0.5666 GB, free: 1.867 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1687, allocations: 0 / 0.5666 GB, free: 1.867 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.1689, allocations: 144.8 kB / 0.5667 GB, free: 1.707 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.645e-05/0.169, allocations: 100.9 kB / 0.5668 GB, free: 1.59 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.169, allocations: 0 / 0.5668 GB, free: 1.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.742e-05/0.1691, allocations: 8 kB / 0.5668 GB, free: 1.582 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.207e-05/0.1692, allocations: 15.92 kB / 0.5669 GB, free: 1.566 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.1692, allocations: 3.984 kB / 0.5669 GB, free: 1.562 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001839/0.1694, allocations: 196.4 kB / 0.5671 GB, free: 1.371 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1694, allocations: 0 / 0.5671 GB, free: 1.371 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002669/0.1696, allocations: 32 kB / 0.5671 GB, free: 1.34 MB / 430.1 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.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.001588/0.1712, allocations: 1.011 MB / 0.5681 GB, free: 492 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002374/0.1715, allocations: 67.95 kB / 0.5681 GB, free: 424 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1715, allocations: 0 / 0.5681 GB, free: 424 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.1716, allocations: 39.91 kB / 0.5682 GB, free: 384 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.1719, allocations: 41.39 kB / 0.5682 GB, free: 344 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.1744, allocations: 1.96 MB / 0.5701 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.1747, allocations: 0.7243 MB / 0.5708 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.1748, allocations: 25.38 kB / 0.5709 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.362e-05/0.1749, allocations: 47.42 kB / 0.5709 GB, free: 13.46 MB / 446.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1749, allocations: 4 kB / 0.5709 GB, free: 13.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01563/0.1905, allocations: 4.192 MB / 0.575 GB, free: 9.418 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003433/0.1909, allocations: 238 kB / 0.5752 GB, free: 9.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.096, allocations: 0 / 0.5752 GB, free: 9.16 MB / 446.1 MB (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/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)