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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.9185/0.9185, allocations: 141.8 MB / 149.3 MB, free: 9.207 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 176.8 kB / 182.2 MB, free: 9.449 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.786/1.786, allocations: 221.5 MB / 436.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 87.88 kB / 0.5074 GB, free: 10.17 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002065/0.002065, allocations: 275.5 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 4.032e-05/4.032e-05, allocations: 8 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5588/0.5588, allocations: 82.77 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1798/0.7387, allocations: 112.4 MB / 0.8672 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003401/0.7391, allocations: 83.94 kB / 0.8673 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01739/0.7566, allocations: 5.514 MB / 0.8726 GB, free: 9.812 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.854e-06/0.7566, allocations: 0 / 0.8726 GB, free: 9.812 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.528e-05/0.7567, allocations: 4 kB / 0.8726 GB, free: 9.809 MB / 0.5417 GB 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.0008457/0.7575, allocations: 471.7 kB / 0.8731 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/0.7576, allocations: 8.031 kB / 0.8731 GB, free: 9.289 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.7578, allocations: 15.81 kB / 0.8731 GB, free: 9.273 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005659/0.7583, allocations: 251.7 kB / 0.8734 GB, free: 8.984 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.7584, allocations: 7.953 kB / 0.8734 GB, free: 8.977 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.7584, allocations: 0 / 0.8734 GB, free: 8.977 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001273/0.7585, allocations: 35.94 kB / 0.8734 GB, free: 8.941 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.7587, allocations: 87.38 kB / 0.8735 GB, free: 8.844 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.7587, allocations: 0 / 0.8735 GB, free: 8.844 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.7588, allocations: 0 / 0.8735 GB, free: 8.844 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.542e-05/0.7588, allocations: 4 kB / 0.8735 GB, free: 8.84 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006772/0.7595, allocations: 341.1 kB / 0.8738 GB, free: 8.469 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.7596, allocations: 70.69 kB / 0.8739 GB, free: 8.391 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.918e-05/0.7597, allocations: 32.91 kB / 0.8739 GB, free: 8.355 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.7598, allocations: 4 kB / 0.8739 GB, free: 8.352 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.7599, allocations: 75.39 kB / 0.874 GB, free: 8.266 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 1.974e-06/0.7599, allocations: 0 / 0.874 GB, free: 8.266 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0004071/0.7603, allocations: 113.5 kB / 0.8741 GB, free: 8.148 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.7604, allocations: 81.11 kB / 0.8742 GB, free: 8.051 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003355/0.7608, allocations: 235 kB / 0.8744 GB, free: 7.812 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.7608, allocations: 25.7 kB / 0.8744 GB, free: 7.781 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.7609, allocations: 120 kB / 0.8745 GB, free: 7.66 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.752e-05/0.761, allocations: 23.73 kB / 0.8746 GB, free: 7.637 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-06/0.761, allocations: 0 / 0.8746 GB, free: 7.637 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001907/0.7612, allocations: 326.8 kB / 0.8749 GB, free: 7.309 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.474e-05/0.7612, allocations: 31.98 kB / 0.8749 GB, free: 7.277 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.976e-05/0.7613, allocations: 63.36 kB / 0.875 GB, free: 7.203 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.7615, allocations: 33.16 kB / 0.875 GB, free: 7.172 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.7615, allocations: 0 / 0.875 GB, free: 7.172 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002935/0.7618, allocations: 113.3 kB / 0.8751 GB, free: 7.055 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.7618, allocations: 8 kB / 0.8751 GB, free: 7.047 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.7618, allocations: 0 / 0.8751 GB, free: 7.047 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.7619, allocations: 0 / 0.8751 GB, free: 7.047 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.008e-05/0.762, allocations: 8 kB / 0.8751 GB, free: 7.039 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.762, allocations: 4 kB / 0.8751 GB, free: 7.035 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.471e-05/0.7621, allocations: 12.05 kB / 0.8751 GB, free: 7.023 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.7621, allocations: 0 / 0.8751 GB, free: 7.023 MB / 0.5417 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 ($whenCondition1,$PRE.booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEvent,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001542/0.7623, allocations: 117.9 kB / 0.8752 GB, free: 6.902 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002403/0.7625, allocations: 113.6 kB / 0.8754 GB, free: 6.785 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.157e-05/0.7626, allocations: 19.75 kB / 0.8754 GB, free: 6.766 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002848/0.7629, allocations: 131.5 kB / 0.8755 GB, free: 6.629 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.7629, allocations: 4 kB / 0.8755 GB, free: 6.625 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.7629, allocations: 4 kB / 0.8755 GB, free: 6.621 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.7629, allocations: 0 / 0.8755 GB, free: 6.621 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002675/0.7632, allocations: 206.1 kB / 0.8757 GB, free: 6.383 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.7632, allocations: 0 / 0.8757 GB, free: 6.383 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.508e-05/0.7632, allocations: 8 kB / 0.8757 GB, free: 6.375 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.7632, allocations: 0 / 0.8757 GB, free: 6.375 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.7633, allocations: 0 / 0.8757 GB, free: 6.375 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.7633, allocations: 0 / 0.8757 GB, free: 6.375 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.7633, allocations: 0 / 0.8757 GB, free: 6.375 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.7636, allocations: 152.8 kB / 0.8759 GB, free: 6.207 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.7637, allocations: 100.9 kB / 0.876 GB, free: 6.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/0.7637, allocations: 8 kB / 0.876 GB, free: 6.082 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.739e-05/0.7638, allocations: 0 / 0.876 GB, free: 6.082 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.603e-05/0.7639, allocations: 11.92 kB / 0.876 GB, free: 6.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.351e-05/0.7639, allocations: 4 kB / 0.876 GB, free: 6.066 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002156/0.7641, allocations: 183.4 kB / 0.8761 GB, free: 5.887 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7641, allocations: 4 kB / 0.8762 GB, free: 5.883 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002979/0.7644, allocations: 43.83 kB / 0.8762 GB, free: 5.84 MB / 0.5417 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.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001635/0.7661, allocations: 0.9375 MB / 0.8771 GB, free: 4.965 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002089/0.7663, allocations: 79.44 kB / 0.8772 GB, free: 4.891 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.7663, allocations: 0 / 0.8772 GB, free: 4.891 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.715e-05/0.7664, allocations: 43.92 kB / 0.8772 GB, free: 4.848 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.7667, allocations: 29.23 kB / 0.8773 GB, free: 4.82 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007739/0.7675, allocations: 282.8 kB / 0.8775 GB, free: 4.508 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/0.768, allocations: 0.7358 MB / 0.8782 GB, free: 3.746 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001025/0.7681, allocations: 25.09 kB / 0.8783 GB, free: 3.727 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.7682, allocations: 51.42 kB / 0.8783 GB, free: 3.676 MB / 0.5417 GB Notification: Performance of SimCode: time 3.71e-07/0.7683, allocations: 0 / 0.8783 GB, free: 3.676 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03411/0.8024, allocations: 3.657 MB / 0.8819 GB, free: 48 kB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003033/0.8028, allocations: 175.6 kB / 0.8821 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.949/2.751, allocations: 0 / 0.8821 GB, free: 15.86 MB / 0.5573 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 & /home/hudson/saved_omc/OMSimulator/install/linux/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)