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.8774/0.8774, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 190.5 kB / 187.3 MB, free: 11.87 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.717/1.717, allocations: 221.3 MB / 441.4 MB, free: 4.609 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.001174/0.001174, allocations: 91.56 kB / 0.5124 GB, free: 24.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002384/0.002385, allocations: 266.4 kB / 0.5939 GB, free: 7.973 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.878e-05/4.881e-05, allocations: 8 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5653/0.5653, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.144/0.7094, allocations: 113 MB / 0.8747 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.7098, allocations: 88.42 kB / 0.8748 GB, free: 11.44 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01726/0.7271, allocations: 5.538 MB / 0.8802 GB, free: 5.914 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.924e-06/0.7272, allocations: 0 / 0.8802 GB, free: 5.914 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.767e-05/0.7272, allocations: 8 kB / 0.8802 GB, free: 5.906 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.0006593/0.7279, allocations: 463.7 kB / 0.8807 GB, free: 5.402 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.996e-05/0.7279, allocations: 8.031 kB / 0.8807 GB, free: 5.395 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.131e-05/0.728, allocations: 42.55 kB / 0.8807 GB, free: 5.344 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.073e-05/0.7281, allocations: 11.81 kB / 0.8807 GB, free: 5.332 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.7285, allocations: 255.6 kB / 0.881 GB, free: 5.039 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.7285, allocations: 4 kB / 0.881 GB, free: 5.035 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.7285, allocations: 8 kB / 0.881 GB, free: 5.027 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.7287, allocations: 83.39 kB / 0.8811 GB, free: 4.934 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.7288, allocations: 0 / 0.8811 GB, free: 4.934 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.7288, allocations: 3.938 kB / 0.8811 GB, free: 4.93 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.279e-05/0.7288, allocations: 7.984 kB / 0.8811 GB, free: 4.922 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.103e-05/0.7289, allocations: 35.94 kB / 0.8811 GB, free: 4.887 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005906/0.7295, allocations: 372.6 kB / 0.8815 GB, free: 4.473 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.7297, allocations: 74.62 kB / 0.8815 GB, free: 4.391 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.928e-05/0.7297, allocations: 32.92 kB / 0.8816 GB, free: 4.355 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.7298, allocations: 7.984 kB / 0.8816 GB, free: 4.348 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001503/0.7299, allocations: 83.38 kB / 0.8817 GB, free: 4.254 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.7299, allocations: 3.938 kB / 0.8817 GB, free: 4.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0002725/0.7302, allocations: 113.5 kB / 0.8818 GB, free: 4.133 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.7303, allocations: 77.11 kB / 0.8818 GB, free: 4.039 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003075/0.7306, allocations: 241.7 kB / 0.8821 GB, free: 3.797 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.7306, allocations: 25.7 kB / 0.8821 GB, free: 3.766 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 9.005e-05/0.7307, allocations: 120 kB / 0.8822 GB, free: 3.645 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.711e-05/0.7308, allocations: 27.72 kB / 0.8822 GB, free: 3.617 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/0.7308, allocations: 4 kB / 0.8822 GB, free: 3.613 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.731, allocations: 334.8 kB / 0.8826 GB, free: 3.277 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.893e-05/0.731, allocations: 24 kB / 0.8826 GB, free: 3.254 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.176e-05/0.7311, allocations: 55.42 kB / 0.8826 GB, free: 3.188 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.058e-05/0.7312, allocations: 36.08 kB / 0.8827 GB, free: 3.152 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.7312, allocations: 0 / 0.8827 GB, free: 3.152 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000182/0.7314, allocations: 113.4 kB / 0.8828 GB, free: 3.035 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.7314, allocations: 8.062 kB / 0.8828 GB, free: 3.027 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.7314, allocations: 4 kB / 0.8828 GB, free: 3.023 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.7314, allocations: 0 / 0.8828 GB, free: 3.023 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.508e-05/0.7315, allocations: 11.98 kB / 0.8828 GB, free: 3.012 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.7315, allocations: 0 / 0.8828 GB, free: 3.012 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.921e-05/0.7316, allocations: 12.02 kB / 0.8828 GB, free: 3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.7316, allocations: 3.938 kB / 0.8828 GB, free: 2.996 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.0001037/0.7317, allocations: 126.1 kB / 0.8829 GB, free: 2.867 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.7318, allocations: 19.91 kB / 0.883 GB, free: 2.848 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002252/0.732, allocations: 128.5 kB / 0.8831 GB, free: 2.719 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.732, allocations: 4 kB / 0.8831 GB, free: 2.715 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.732, allocations: 0 / 0.8831 GB, free: 2.715 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.732, allocations: 0 / 0.8831 GB, free: 2.715 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002268/0.7323, allocations: 237.5 kB / 0.8833 GB, free: 2.434 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.7323, allocations: 0 / 0.8833 GB, free: 2.434 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.847e-05/0.7323, allocations: 7.984 kB / 0.8833 GB, free: 2.426 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.7323, allocations: 0 / 0.8833 GB, free: 2.426 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.7323, allocations: 0 / 0.8833 GB, free: 2.426 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.7323, allocations: 8 kB / 0.8833 GB, free: 2.418 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.7324, allocations: 0 / 0.8833 GB, free: 2.418 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002192/0.7326, allocations: 152.7 kB / 0.8835 GB, free: 2.25 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 9.505e-05/0.7327, allocations: 96.92 kB / 0.8836 GB, free: 2.137 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.266e-05/0.7327, allocations: 4 kB / 0.8836 GB, free: 2.133 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.82e-05/0.7328, allocations: 7.984 kB / 0.8836 GB, free: 2.125 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/0.7328, allocations: 4 kB / 0.8836 GB, free: 2.121 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.7329, allocations: 11.98 kB / 0.8836 GB, free: 2.109 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002089/0.7331, allocations: 188.4 kB / 0.8838 GB, free: 1.926 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7331, allocations: 0 / 0.8838 GB, free: 1.926 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002441/0.7333, allocations: 43.92 kB / 0.8838 GB, free: 1.883 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.001471/0.7348, allocations: 0.9852 MB / 0.8848 GB, free: 1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001975/0.735, allocations: 71.92 kB / 0.8848 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.735, allocations: 0 / 0.8848 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.679e-05/0.7351, allocations: 39.98 kB / 0.8849 GB, free: 0.8906 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.7354, allocations: 32.98 kB / 0.8849 GB, free: 0.8594 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006353/0.736, allocations: 307.5 kB / 0.8852 GB, free: 0.5234 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003989/0.7364, allocations: 0.7282 MB / 0.8859 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 8.237e-05/0.7365, allocations: 27.22 kB / 0.8859 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.793e-05/0.7366, allocations: 51.41 kB / 0.886 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of SimCode: time 3.71e-07/0.7366, allocations: 0 / 0.886 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.7534, allocations: 4.076 MB / 0.89 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/0.7536, allocations: 205.3 kB / 0.8902 GB, free: 11.57 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.54, allocations: 0 / 0.8902 GB, free: 11.57 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)