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.001051/0.001051, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001098/0.001098, allocations: 194 kB / 16.25 MB, free: 6.621 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.222/1.222, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001938/0.001937, allocations: 286.5 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9191/0.9191, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 94.77 kB / 0.5948 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.142, allocations: 86.98 MB / 0.6797 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.003173/0.1452, allocations: 1.828 MB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.1467, allocations: 1.006 MB / 0.6825 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.242e-05/0.1468, allocations: 0 / 0.6825 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005932/0.1474, allocations: 167.5 kB / 0.6827 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002662/0.1477, allocations: 99.75 kB / 0.6828 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000393/0.1481, allocations: 151.2 kB / 0.6829 GB, free: 13.69 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.1483, allocations: 167.6 kB / 0.6831 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.1484, allocations: 25.38 kB / 0.6831 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.284e-05/0.1485, allocations: 67.7 kB / 0.6832 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.1486, allocations: 83.67 kB / 0.6832 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.003e-05/0.1487, allocations: 8 kB / 0.6832 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.1488, allocations: 55.97 kB / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.312e-05/0.1489, allocations: 51.77 kB / 0.6833 GB, free: 13.24 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.962e-05/0.1489, allocations: 63.61 kB / 0.6834 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.1492, allocations: 187.3 kB / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1492, allocations: 0 / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1492, allocations: 0 / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.1492, allocations: 0 / 0.6836 GB, free: 13 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.0006998/0.1499, allocations: 0.4886 MB / 0.6841 GB, free: 12.45 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.15, allocations: 12.03 kB / 0.6841 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.628e-05/0.15, allocations: 34.75 kB / 0.6841 GB, free: 12.4 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.278e-05/0.1501, allocations: 20.69 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.1503, allocations: 257.4 kB / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.1503, allocations: 384 / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.1504, allocations: 11.94 kB / 0.6844 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000193/0.1506, allocations: 87.31 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.1506, allocations: 4 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.1506, allocations: 0 / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.1506, allocations: 4 kB / 0.6845 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.956e-05/0.1507, allocations: 35.98 kB / 0.6845 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004683/0.1512, allocations: 352.7 kB / 0.6848 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.1514, allocations: 78.61 kB / 0.6849 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.368e-05/0.1514, allocations: 32.84 kB / 0.6849 GB, free: 11.42 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.1515, allocations: 0 / 0.6849 GB, free: 11.42 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.1516, allocations: 75.39 kB / 0.685 GB, free: 11.34 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.1516, allocations: 4 kB / 0.685 GB, free: 11.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003206/0.152, allocations: 145.7 kB / 0.6852 GB, free: 11.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/0.152, allocations: 89.09 kB / 0.6852 GB, free: 11.08 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002306/0.1523, allocations: 258.9 kB / 0.6855 GB, free: 10.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.1523, allocations: 33.64 kB / 0.6855 GB, free: 10.78 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.007e-05/0.1524, allocations: 120 kB / 0.6856 GB, free: 10.66 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.1524, allocations: 23.66 kB / 0.6857 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.017e-05/0.1525, allocations: 33.7 kB / 0.6857 GB, free: 10.59 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1526, allocations: 326.8 kB / 0.686 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.214e-05/0.1526, allocations: 24 kB / 0.686 GB, free: 10.24 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.086e-05/0.1527, allocations: 63.41 kB / 0.6861 GB, free: 10.17 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.1529, allocations: 73.64 kB / 0.6862 GB, free: 10.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1529, allocations: 112 / 0.6862 GB, free: 10.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001785/0.153, allocations: 117.4 kB / 0.6863 GB, free: 9.969 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1531, allocations: 10.34 kB / 0.6863 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1531, allocations: 8.062 kB / 0.6863 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.1531, allocations: 0 / 0.6863 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.107e-05/0.1532, allocations: 11.98 kB / 0.6863 GB, free: 9.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.1532, allocations: 8.141 kB / 0.6863 GB, free: 9.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.686e-05/0.1533, allocations: 15.88 kB / 0.6863 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.1533, allocations: 0 / 0.6863 GB, free: 9.918 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.0001171/0.1534, allocations: 141.8 kB / 0.6865 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.593e-05/0.1534, allocations: 11.81 kB / 0.6865 GB, free: 9.758 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.685e-05/0.1535, allocations: 29.39 kB / 0.6865 GB, free: 9.727 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.1535, allocations: 4 kB / 0.6865 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1535, allocations: 0 / 0.6865 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.1535, allocations: 3.938 kB / 0.6865 GB, free: 9.719 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001688/0.1537, allocations: 217.5 kB / 0.6867 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1537, allocations: 0 / 0.6867 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.637e-05/0.1537, allocations: 12.02 kB / 0.6867 GB, free: 9.445 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.1537, allocations: 3.938 kB / 0.6867 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.1537, allocations: 8 kB / 0.6867 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1537, allocations: 0 / 0.6867 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1538, allocations: 0 / 0.6867 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002013/0.154, allocations: 140.9 kB / 0.6869 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/0.154, allocations: 100.8 kB / 0.687 GB, free: 9.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.1541, allocations: 8 kB / 0.687 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.636e-05/0.1541, allocations: 4 kB / 0.687 GB, free: 9.148 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.425e-05/0.1541, allocations: 7.922 kB / 0.687 GB, free: 9.141 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.1542, allocations: 4 kB / 0.687 GB, free: 9.137 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.1543, allocations: 192.4 kB / 0.6872 GB, free: 8.949 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1543, allocations: 4 kB / 0.6872 GB, free: 8.945 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002428/0.1546, allocations: 35.97 kB / 0.6872 GB, free: 8.91 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.001301/0.1559, allocations: 0.9922 MB / 0.6882 GB, free: 8.047 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002103/0.1561, allocations: 83.89 kB / 0.6883 GB, free: 7.965 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1561, allocations: 0 / 0.6883 GB, free: 7.965 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.756e-05/0.1562, allocations: 39.98 kB / 0.6883 GB, free: 7.926 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.1565, allocations: 39.89 kB / 0.6883 GB, free: 7.891 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/0.1586, allocations: 1.974 MB / 0.6903 GB, free: 5.828 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.1588, allocations: 0.7317 MB / 0.691 GB, free: 5.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.274e-05/0.1589, allocations: 21.72 kB / 0.691 GB, free: 5.051 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.455e-05/0.159, allocations: 51.36 kB / 0.691 GB, free: 5 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.159, allocations: 0 / 0.691 GB, free: 5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.692/2.851, allocations: 4.323 MB / 0.6953 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003227/2.851, allocations: 250.2 kB / 0.6955 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.64/5.491, allocations: 0 / 0.6955 GB, free: 0.5898 MB / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)