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.001366/0.001366, 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.001274/0.001274, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.357/1.357, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002505/0.002505, allocations: 271.2 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.009/1.009, allocations: 178.6 MB / 0.5073 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002626/0.002626, allocations: 108.4 kB / 0.6065 GB, free: 24.73 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1491, allocations: 89.14 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.003139/0.1523, allocations: 1.778 MB / 0.6953 GB, free: 2.441 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.1539, allocations: 1.019 MB / 0.6963 GB, free: 1.414 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.597e-05/0.154, allocations: 4 kB / 0.6963 GB, free: 1.41 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000585/0.1546, allocations: 161.4 kB / 0.6965 GB, free: 1.254 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000282/0.1549, allocations: 123 kB / 0.6966 GB, free: 1.137 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.1554, allocations: 175.5 kB / 0.6968 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002081/0.1556, allocations: 167.6 kB / 0.6969 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.457e-05/0.1557, allocations: 21.12 kB / 0.697 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.1558, allocations: 63.77 kB / 0.697 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001113/0.1559, allocations: 71.69 kB / 0.6971 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.387e-05/0.1559, allocations: 8 kB / 0.6971 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.1561, allocations: 63.95 kB / 0.6972 GB, free: 0.582 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.732e-05/0.1562, allocations: 43.84 kB / 0.6972 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.281e-05/0.1562, allocations: 59.61 kB / 0.6972 GB, free: 492 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002593/0.1565, allocations: 199.6 kB / 0.6974 GB, free: 292 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1565, allocations: 0 / 0.6974 GB, free: 292 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1565, allocations: 0 / 0.6974 GB, free: 292 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.1565, allocations: 0 / 0.6974 GB, free: 292 kB / 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.0006766/0.1572, allocations: 0.4906 MB / 0.6979 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.1573, allocations: 8.031 kB / 0.6979 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.654e-05/0.1573, allocations: 38.73 kB / 0.698 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.342e-05/0.1573, allocations: 12.75 kB / 0.698 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002862/0.1576, allocations: 252.7 kB / 0.6982 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.1577, allocations: 8.312 kB / 0.6982 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.1577, allocations: 7.938 kB / 0.6982 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001854/0.1579, allocations: 95.31 kB / 0.6983 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1579, allocations: 4 kB / 0.6983 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-06/0.1579, allocations: 0 / 0.6983 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.1579, allocations: 4 kB / 0.6983 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.746e-05/0.158, allocations: 39.91 kB / 0.6984 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004936/0.1585, allocations: 348.8 kB / 0.6987 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.1587, allocations: 74.67 kB / 0.6988 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.246e-05/0.1588, allocations: 36.78 kB / 0.6988 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.1589, allocations: 0 / 0.6988 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001683/0.159, allocations: 87.36 kB / 0.6989 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.159, allocations: 0 / 0.6989 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0003475/0.1594, allocations: 149.4 kB / 0.699 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.1595, allocations: 77.11 kB / 0.6991 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002675/0.1597, allocations: 262.8 kB / 0.6994 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.1598, allocations: 33.7 kB / 0.6994 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.784e-05/0.1598, allocations: 112.1 kB / 0.6995 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.975e-05/0.1599, allocations: 27.64 kB / 0.6995 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.988e-05/0.1599, allocations: 29.7 kB / 0.6996 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1601, allocations: 330.8 kB / 0.6999 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.717e-05/0.1602, allocations: 31.98 kB / 0.6999 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.461e-05/0.1603, allocations: 63.34 kB / 0.7 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.1604, allocations: 73.95 kB / 0.7 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1604, allocations: 0 / 0.7 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002077/0.1606, allocations: 125.5 kB / 0.7001 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.1606, allocations: 4 kB / 0.7002 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1606, allocations: 0 / 0.7002 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.1607, allocations: 0 / 0.7002 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.234e-05/0.1607, allocations: 15.98 kB / 0.7002 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.1608, allocations: 3.938 kB / 0.7002 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.446e-05/0.1608, allocations: 15.88 kB / 0.7002 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-06/0.1608, allocations: 4 kB / 0.7002 GB, free: 13.2 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: 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.0001238/0.161, allocations: 139.8 kB / 0.7003 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.096e-05/0.161, allocations: 23.7 kB / 0.7003 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.55e-05/0.1611, allocations: 17.41 kB / 0.7004 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.1611, allocations: 4 kB / 0.7004 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.1611, allocations: 0 / 0.7004 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1611, allocations: 7.922 kB / 0.7004 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/0.1613, allocations: 217.6 kB / 0.7006 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1613, allocations: 0 / 0.7006 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.505e-05/0.1613, allocations: 4 kB / 0.7006 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1613, allocations: 0 / 0.7006 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.968e-06/0.1614, allocations: 4 kB / 0.7006 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.1614, allocations: 8 kB / 0.7006 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1614, allocations: 0 / 0.7006 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.1616, allocations: 152.8 kB / 0.7007 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.526e-05/0.1617, allocations: 88.92 kB / 0.7008 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.1617, allocations: 4 kB / 0.7008 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.023e-05/0.1618, allocations: 7.984 kB / 0.7008 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.1618, allocations: 7.938 kB / 0.7008 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.1618, allocations: 4 kB / 0.7009 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001897/0.162, allocations: 200.5 kB / 0.701 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.162, allocations: 0 / 0.701 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002283/0.1623, allocations: 24 kB / 0.7011 GB, free: 12.21 MB / 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: 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.00188/0.1641, allocations: 1.001 MB / 0.702 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002228/0.1644, allocations: 79.91 kB / 0.7021 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.1644, allocations: 0 / 0.7021 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.255e-05/0.1645, allocations: 39.92 kB / 0.7022 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.1648, allocations: 40.66 kB / 0.7022 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002205/0.167, allocations: 1.952 MB / 0.7041 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.1673, allocations: 0.7279 MB / 0.7048 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.202e-05/0.1674, allocations: 25.7 kB / 0.7048 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.471e-05/0.1675, allocations: 43.42 kB / 0.7049 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1675, allocations: 0 / 0.7049 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02488/0.1924, allocations: 4.44 MB / 0.7092 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.537/7.73, allocations: 3.438 kB / 0.7092 GB, free: 4.023 MB / 0.4981 GB (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)