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.8152/0.8152, allocations: 143.4 MB / 158.3 MB, free: 5.777 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.001173/0.001173, allocations: 175.4 kB / 191.5 MB, free: 5.762 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.522/1.522, allocations: 223.2 MB / 447.7 MB, free: 4.832 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.0009602/0.0009602, allocations: 88.27 kB / 0.5187 GB, free: 1.184 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001785/0.001785, allocations: 269.3 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004474/0.0004474, allocations: 12 kB / 0.6929 GB, free: 59.73 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1667, allocations: 82.79 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5662/0.7329, allocations: 113.1 MB / 0.8842 GB, free: 33.05 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/0.7332, allocations: 85.73 kB / 0.8843 GB, free: 33.04 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01569/0.749, allocations: 5.567 MB / 0.8897 GB, free: 32.47 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.194e-06/0.749, allocations: 3.531 kB / 0.8897 GB, free: 32.47 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.407e-05/0.749, allocations: 0 / 0.8897 GB, free: 32.47 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.0005623/0.7496, allocations: 0.4967 MB / 0.8902 GB, free: 32.01 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.7496, allocations: 11 kB / 0.8902 GB, free: 32.01 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.7497, allocations: 36.39 kB / 0.8903 GB, free: 31.97 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.7497, allocations: 15.47 kB / 0.8903 GB, free: 31.96 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.7501, allocations: 252.3 kB / 0.8905 GB, free: 31.75 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.7501, allocations: 7.469 kB / 0.8905 GB, free: 31.74 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.7501, allocations: 10.86 kB / 0.8905 GB, free: 31.74 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001811/0.7503, allocations: 85.55 kB / 0.8906 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.7503, allocations: 4 kB / 0.8906 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.7503, allocations: 3.875 kB / 0.8906 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.7504, allocations: 2.953 kB / 0.8906 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.543e-05/0.7505, allocations: 34.27 kB / 0.8907 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004893/0.751, allocations: 368.6 kB / 0.891 GB, free: 31.41 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.7511, allocations: 82.61 kB / 0.8911 GB, free: 31.38 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.7512, allocations: 0 / 0.8911 GB, free: 31.38 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001528/0.7513, allocations: 85.33 kB / 0.8912 GB, free: 31.33 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 1.562e-06/0.7513, allocations: 0 / 0.8912 GB, free: 31.33 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0003499/0.7517, allocations: 233.1 kB / 0.8914 GB, free: 31.2 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.7517, allocations: 77.11 kB / 0.8915 GB, free: 31.1 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/0.752, allocations: 248.6 kB / 0.8917 GB, free: 31 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.752, allocations: 28.27 kB / 0.8917 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.137e-05/0.7521, allocations: 116.8 kB / 0.8918 GB, free: 30.88 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.7521, allocations: 20.58 kB / 0.8919 GB, free: 30.87 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.7521, allocations: 6.578 kB / 0.8919 GB, free: 30.87 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.142e-05/0.7522, allocations: 332.8 kB / 0.8922 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.054e-05/0.7522, allocations: 29.53 kB / 0.8922 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.587e-05/0.7523, allocations: 61.27 kB / 0.8923 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.74e-05/0.7524, allocations: 40.44 kB / 0.8923 GB, free: 30.51 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.7524, allocations: 0 / 0.8923 GB, free: 30.51 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001771/0.7526, allocations: 115.2 kB / 0.8924 GB, free: 30.47 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.7526, allocations: 7.594 kB / 0.8924 GB, free: 30.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.7526, allocations: 2.531 kB / 0.8924 GB, free: 30.47 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.7526, allocations: 0 / 0.8924 GB, free: 30.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.394e-05/0.7527, allocations: 12.42 kB / 0.8924 GB, free: 30.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.7527, allocations: 8 kB / 0.8924 GB, free: 30.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.325e-05/0.7528, allocations: 19.48 kB / 0.8925 GB, free: 30.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.7528, allocations: 0 / 0.8925 GB, free: 30.46 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.7529, allocations: 152.6 kB / 0.8926 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.448e-05/0.753, allocations: 16.12 kB / 0.8926 GB, free: 30.32 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002349/0.7532, allocations: 128 kB / 0.8927 GB, free: 30.29 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.7532, allocations: 7.719 kB / 0.8928 GB, free: 30.29 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.7532, allocations: 3.938 kB / 0.8928 GB, free: 30.28 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.7532, allocations: 0 / 0.8928 GB, free: 30.28 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000183/0.7534, allocations: 233.1 kB / 0.893 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.7534, allocations: 0 / 0.893 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.728e-05/0.7535, allocations: 9.094 kB / 0.893 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.7535, allocations: 2.844 kB / 0.893 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.7535, allocations: 0 / 0.893 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.7535, allocations: 0 / 0.893 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.7535, allocations: 0 / 0.893 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002099/0.7537, allocations: 166 kB / 0.8932 GB, free: 30.01 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.335e-05/0.7538, allocations: 98.66 kB / 0.8932 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.948e-05/0.7538, allocations: 2.844 kB / 0.8932 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.453e-05/0.7539, allocations: 4.547 kB / 0.8933 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.424e-05/0.7539, allocations: 6.25 kB / 0.8933 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.694e-06/0.754, allocations: 2.562 kB / 0.8933 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001636/0.7541, allocations: 194.5 kB / 0.8934 GB, free: 29.83 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7541, allocations: 0 / 0.8934 GB, free: 29.83 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002641/0.7544, allocations: 48.36 kB / 0.8935 GB, free: 29.82 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) * Number of clocked states: 0 () * 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.001343/0.7557, allocations: 1.028 MB / 0.8945 GB, free: 29.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002232/0.756, allocations: 80.25 kB / 0.8946 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.756, allocations: 4.062 kB / 0.8946 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 8.208e-05/0.7561, allocations: 39.19 kB / 0.8946 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.7564, allocations: 29.23 kB / 0.8946 GB, free: 29.09 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.7577, allocations: 1.137 MB / 0.8958 GB, free: 28.47 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.7579, allocations: 0.7336 MB / 0.8965 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.946e-05/0.758, allocations: 19.36 kB / 0.8965 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.364e-05/0.7581, allocations: 54.02 kB / 0.8965 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of SimCode: time 3.31e-07/0.7581, allocations: 0 / 0.8965 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.7761, allocations: 4.114 MB / 0.9006 GB, free: 27.39 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.7763, allocations: 233.2 kB / 0.9008 GB, free: 27.14 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/2.551, allocations: 4 kB / 0.9008 GB, free: 27.14 MB / 0.5417 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)