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.001092/0.001092, allocations: 108 kB / 15.61 MB, free: 152 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.001145/0.001145, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00209/0.00209, allocations: 283.1 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9549/0.9549, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002932/0.002932, allocations: 101.9 kB / 0.5953 GB, free: 27.83 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1618, allocations: 86.98 MB / 0.6803 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002913/0.1648, allocations: 1.76 MB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.1664, allocations: 1.114 MB / 0.6831 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.386e-05/0.1665, allocations: 0 / 0.6831 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002488/0.1668, allocations: 57.64 kB / 0.6831 GB, free: 13.69 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002282/0.167, allocations: 83.66 kB / 0.6832 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005719/0.1676, allocations: 229.8 kB / 0.6834 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.1678, allocations: 135.7 kB / 0.6836 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.708e-05/0.1679, allocations: 29.36 kB / 0.6836 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.904e-05/0.168, allocations: 55.78 kB / 0.6837 GB, free: 13.17 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.1681, allocations: 67.69 kB / 0.6837 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.1681, allocations: 12 kB / 0.6837 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.1683, allocations: 67.95 kB / 0.6838 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.833e-05/0.1684, allocations: 39.84 kB / 0.6838 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.257e-05/0.1684, allocations: 59.61 kB / 0.6839 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.1687, allocations: 199.4 kB / 0.6841 GB, free: 12.73 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1687, allocations: 0 / 0.6841 GB, free: 12.73 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1687, allocations: 0 / 0.6841 GB, free: 12.73 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1687, allocations: 0 / 0.6841 GB, free: 12.73 MB / 494.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.0005609/0.1693, allocations: 0.4885 MB / 0.6846 GB, free: 12.19 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.1693, allocations: 8.031 kB / 0.6846 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.606e-05/0.1694, allocations: 38.75 kB / 0.6846 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.82e-05/0.1694, allocations: 20.75 kB / 0.6846 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.1697, allocations: 253.4 kB / 0.6849 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.1697, allocations: 4.375 kB / 0.6849 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.1697, allocations: 7.938 kB / 0.6849 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.1699, allocations: 92.22 kB / 0.685 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.1699, allocations: 3.938 kB / 0.685 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.17, allocations: 8 kB / 0.685 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.17, allocations: 4 kB / 0.685 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.994e-05/0.1701, allocations: 31.97 kB / 0.685 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004336/0.1705, allocations: 352.7 kB / 0.6853 GB, free: 11.27 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.1707, allocations: 90.69 kB / 0.6854 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.908e-05/0.1708, allocations: 32.84 kB / 0.6855 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.1709, allocations: 7.938 kB / 0.6855 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.1711, allocations: 79.38 kB / 0.6855 GB, free: 11.04 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.1711, allocations: 0 / 0.6855 GB, free: 11.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003337/0.1714, allocations: 141.4 kB / 0.6857 GB, free: 10.89 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.1715, allocations: 110.8 kB / 0.6858 GB, free: 10.76 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.1717, allocations: 259.1 kB / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.1717, allocations: 29.7 kB / 0.6861 GB, free: 10.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.1718, allocations: 116.1 kB / 0.6862 GB, free: 10.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.493e-05/0.1718, allocations: 23.66 kB / 0.6862 GB, free: 10.32 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.56e-05/0.1719, allocations: 33.64 kB / 0.6862 GB, free: 10.29 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.856e-05/0.172, allocations: 326.8 kB / 0.6865 GB, free: 9.957 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.046e-05/0.1721, allocations: 23.98 kB / 0.6866 GB, free: 9.934 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.71e-05/0.1722, allocations: 76.27 kB / 0.6866 GB, free: 9.844 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.1723, allocations: 73.94 kB / 0.6867 GB, free: 9.766 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1723, allocations: 0 / 0.6867 GB, free: 9.766 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002122/0.1725, allocations: 113.4 kB / 0.6868 GB, free: 9.648 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.1726, allocations: 8 kB / 0.6868 GB, free: 9.641 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.1726, allocations: 0 / 0.6868 GB, free: 9.641 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.1726, allocations: 4.031 kB / 0.6868 GB, free: 9.637 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.007e-05/0.1727, allocations: 19.98 kB / 0.6868 GB, free: 9.617 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.1727, allocations: 0 / 0.6868 GB, free: 9.617 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.182e-05/0.1728, allocations: 7.938 kB / 0.6868 GB, free: 9.609 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.1728, allocations: 4 kB / 0.6869 GB, free: 9.605 MB / 494.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.0001055/0.1729, allocations: 139 kB / 0.687 GB, free: 9.461 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.394e-05/0.1729, allocations: 19.8 kB / 0.687 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.089e-05/0.173, allocations: 17.41 kB / 0.687 GB, free: 9.422 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.173, allocations: 4 kB / 0.687 GB, free: 9.418 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.173, allocations: 0 / 0.687 GB, free: 9.418 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.173, allocations: 3.938 kB / 0.687 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.1732, allocations: 233.5 kB / 0.6873 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1732, allocations: 0 / 0.6873 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-05/0.1732, allocations: 4 kB / 0.6873 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1733, allocations: 0 / 0.6873 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.1733, allocations: 0 / 0.6873 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1733, allocations: 4 kB / 0.6873 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1733, allocations: 0 / 0.6873 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.1735, allocations: 145 kB / 0.6874 GB, free: 8.969 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.346e-05/0.1736, allocations: 96.86 kB / 0.6875 GB, free: 8.855 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.1736, allocations: 7.922 kB / 0.6875 GB, free: 8.848 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.661e-05/0.1737, allocations: 8 kB / 0.6875 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.135e-05/0.1737, allocations: 11.92 kB / 0.6875 GB, free: 8.828 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.1738, allocations: 0 / 0.6875 GB, free: 8.828 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001638/0.1739, allocations: 197.1 kB / 0.6877 GB, free: 8.637 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.1739, allocations: 0 / 0.6877 GB, free: 8.637 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002502/0.1742, allocations: 43.92 kB / 0.6877 GB, free: 8.594 MB / 494.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.001276/0.1755, allocations: 0.9928 MB / 0.6887 GB, free: 7.734 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002191/0.1757, allocations: 75.84 kB / 0.6888 GB, free: 7.66 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1757, allocations: 4.062 kB / 0.6888 GB, free: 7.656 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.884e-05/0.1758, allocations: 31.98 kB / 0.6888 GB, free: 7.625 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.1761, allocations: 49.22 kB / 0.6889 GB, free: 7.582 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.1785, allocations: 1.951 MB / 0.6908 GB, free: 5.539 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.1788, allocations: 0.7243 MB / 0.6915 GB, free: 4.789 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.687e-05/0.1789, allocations: 29.06 kB / 0.6915 GB, free: 4.762 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.731e-05/0.1789, allocations: 43.42 kB / 0.6916 GB, free: 4.719 MB / 494.1 MB Notification: Performance of SimCode: time 2e-07/0.179, allocations: 0 / 0.6916 GB, free: 4.719 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09618/0.2751, allocations: 4.605 MB / 0.696 GB, free: 248 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.622/7.897, allocations: 13.88 kB / 0.6961 GB, free: 236 kB / 494.1 MB (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)