Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.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.BooleanReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator",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.001154/0.001154, allocations: 108 kB / 15.6 MB, free: 132 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.001413/0.001413, allocations: 191.9 kB / 16.53 MB, free: 6.391 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.279/1.279, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002036/0.002036, allocations: 282.8 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9264/0.9264, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.0017, allocations: 100.1 kB / 0.5953 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.148, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.00288/0.1509, allocations: 1.772 MB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.1524, allocations: 1.029 MB / 0.683 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.574e-05/0.1525, allocations: 0 / 0.683 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005445/0.153, allocations: 167.5 kB / 0.6832 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002413/0.1533, allocations: 103.6 kB / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004124/0.1537, allocations: 178 kB / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.1539, allocations: 167.5 kB / 0.6836 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.529e-05/0.154, allocations: 29.38 kB / 0.6836 GB, free: 13.15 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.867e-05/0.1541, allocations: 63.77 kB / 0.6837 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.706e-05/0.1542, allocations: 75.73 kB / 0.6838 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.1542, allocations: 8 kB / 0.6838 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.1544, allocations: 55.92 kB / 0.6838 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.671e-05/0.1544, allocations: 43.84 kB / 0.6839 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.031e-05/0.1545, allocations: 63.59 kB / 0.6839 GB, free: 12.85 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.1548, allocations: 199.3 kB / 0.6841 GB, free: 12.65 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1548, allocations: 0 / 0.6841 GB, free: 12.65 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1548, allocations: 4 kB / 0.6841 GB, free: 12.65 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.1548, allocations: 0 / 0.6841 GB, free: 12.65 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006029/0.1554, allocations: 492.4 kB / 0.6846 GB, free: 12.11 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.1554, allocations: 12.03 kB / 0.6846 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.021e-05/0.1555, allocations: 34.75 kB / 0.6846 GB, free: 12.06 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/0.1555, allocations: 16.75 kB / 0.6847 GB, free: 12.04 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.1558, allocations: 253.5 kB / 0.6849 GB, free: 11.76 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.1558, allocations: 8.297 kB / 0.6849 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.1558, allocations: 15.94 kB / 0.6849 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001649/0.156, allocations: 83.33 kB / 0.685 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.156, allocations: 3.984 kB / 0.685 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.156, allocations: 0 / 0.685 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.156, allocations: 4 kB / 0.685 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.085e-05/0.1561, allocations: 35.98 kB / 0.685 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004447/0.1566, allocations: 364.6 kB / 0.6854 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.1568, allocations: 66.69 kB / 0.6855 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.45e-05/0.1568, allocations: 32.84 kB / 0.6855 GB, free: 11.08 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.1569, allocations: 3.938 kB / 0.6855 GB, free: 11.08 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001474/0.157, allocations: 87.31 kB / 0.6856 GB, free: 10.98 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.157, allocations: 0 / 0.6856 GB, free: 10.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002976/0.1573, allocations: 145.4 kB / 0.6857 GB, free: 10.83 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.1574, allocations: 81.11 kB / 0.6858 GB, free: 10.73 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.1576, allocations: 259.1 kB / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.1577, allocations: 29.7 kB / 0.6861 GB, free: 10.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.788e-05/0.1577, allocations: 120 kB / 0.6862 GB, free: 10.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.1578, allocations: 23.7 kB / 0.6862 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.41e-05/0.1578, allocations: 37.7 kB / 0.6862 GB, free: 10.25 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.1579, allocations: 322.8 kB / 0.6865 GB, free: 9.926 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.208e-05/0.158, allocations: 27.98 kB / 0.6866 GB, free: 9.898 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.702e-05/0.1581, allocations: 59.41 kB / 0.6866 GB, free: 9.828 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001164/0.1582, allocations: 73.64 kB / 0.6867 GB, free: 9.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1582, allocations: 4.031 kB / 0.6867 GB, free: 9.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001846/0.1584, allocations: 113.5 kB / 0.6868 GB, free: 9.629 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.1584, allocations: 12.31 kB / 0.6868 GB, free: 9.617 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1584, allocations: 4 kB / 0.6868 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.1584, allocations: 0 / 0.6868 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.738e-05/0.1585, allocations: 8 kB / 0.6868 GB, free: 9.605 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1585, allocations: 7.938 kB / 0.6868 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.716e-05/0.1586, allocations: 15.86 kB / 0.6869 GB, free: 9.582 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-06/0.1586, allocations: 4 kB / 0.6869 GB, free: 9.578 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: 10 ($PRE.booTab.combiTimeTable.nextTimeEvent,$whenCondition1,booRep.y[4],booRep.y[3],booRep.y[2],booRep.y[1],booTab.combiTimeTable.nextTimeEventScaled,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent,booTab.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.0001061/0.1587, allocations: 145.8 kB / 0.687 GB, free: 9.426 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.593e-05/0.1587, allocations: 11.81 kB / 0.687 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.301e-05/0.1588, allocations: 25.39 kB / 0.687 GB, free: 9.387 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.1588, allocations: 4 kB / 0.687 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1588, allocations: 0 / 0.687 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1588, allocations: 3.938 kB / 0.687 GB, free: 9.379 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.159, allocations: 221.5 kB / 0.6873 GB, free: 9.113 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.159, allocations: 0 / 0.6873 GB, free: 9.113 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-05/0.159, allocations: 4 kB / 0.6873 GB, free: 9.109 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.159, allocations: 4 kB / 0.6873 GB, free: 9.105 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.159, allocations: 7.984 kB / 0.6873 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1591, allocations: 0 / 0.6873 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1591, allocations: 0 / 0.6873 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002079/0.1593, allocations: 144.8 kB / 0.6874 GB, free: 8.938 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.672e-05/0.1593, allocations: 92.91 kB / 0.6875 GB, free: 8.828 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.696e-05/0.1594, allocations: 4 kB / 0.6875 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.036e-05/0.1594, allocations: 11.98 kB / 0.6875 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.273e-05/0.1595, allocations: 11.92 kB / 0.6875 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.1595, allocations: 4 kB / 0.6875 GB, free: 8.797 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001553/0.1596, allocations: 193.1 kB / 0.6877 GB, free: 8.609 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1596, allocations: 0 / 0.6877 GB, free: 8.609 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002332/0.1599, allocations: 31.98 kB / 0.6877 GB, free: 8.578 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: 8 ($whenCondition1,booTab.y,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEventScaled,booTab.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.00122/0.1611, allocations: 1.004 MB / 0.6887 GB, free: 7.711 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001947/0.1613, allocations: 79.91 kB / 0.6888 GB, free: 7.633 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1613, allocations: 0 / 0.6888 GB, free: 7.633 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.352e-05/0.1614, allocations: 43.92 kB / 0.6888 GB, free: 7.59 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.1617, allocations: 43.89 kB / 0.6889 GB, free: 7.551 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.1636, allocations: 1.953 MB / 0.6908 GB, free: 5.512 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.1638, allocations: 0.7278 MB / 0.6915 GB, free: 4.758 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.547e-05/0.1639, allocations: 17.42 kB / 0.6915 GB, free: 4.742 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.833e-05/0.1639, allocations: 47.42 kB / 0.6916 GB, free: 4.695 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1639, allocations: 4 kB / 0.6916 GB, free: 4.691 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01873/0.1827, allocations: 4.42 MB / 0.6959 GB, free: 404 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.031/7.214, allocations: 5.891 kB / 0.6959 GB, free: 400 kB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)