Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_8_Buildings_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.001323/0.001323, 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.001445/0.001445, allocations: 193.9 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.533/1.533, allocations: 292.3 MB / 0.5485 GB, free: 13.65 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 66 kB / 0.6711 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.211, allocations: 114.6 MB / 0.783 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.002917/0.214, allocations: 1.84 MB / 0.7848 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001321/0.2153, allocations: 0.9296 MB / 0.7857 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.292e-05/0.2154, allocations: 3.938 kB / 0.7857 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0005352/0.216, allocations: 151.7 kB / 0.7858 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002492/0.2162, allocations: 111.7 kB / 0.7859 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003639/0.2166, allocations: 134.6 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002032/0.2168, allocations: 167.6 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.359e-05/0.2169, allocations: 29.03 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.217, allocations: 71.7 kB / 0.7863 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.855e-05/0.2171, allocations: 79.67 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.91e-05/0.2172, allocations: 8 kB / 0.7864 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.2173, allocations: 51.98 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.747e-05/0.2174, allocations: 51.81 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.971e-05/0.2174, allocations: 59.56 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002485/0.2177, allocations: 191.7 kB / 0.7867 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2177, allocations: 0 / 0.7867 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2177, allocations: 3.938 kB / 0.7867 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.2177, allocations: 0 / 0.7867 GB, free: 9.93 MB / 0.6075 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.0006246/0.2184, allocations: 0.4925 MB / 0.7872 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.2184, allocations: 8.031 kB / 0.7872 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.16e-05/0.2184, allocations: 34.75 kB / 0.7873 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.363e-05/0.2185, allocations: 16.75 kB / 0.7873 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/0.2187, allocations: 248.8 kB / 0.7875 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.2188, allocations: 4.375 kB / 0.7875 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.2188, allocations: 7.922 kB / 0.7875 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001712/0.2189, allocations: 99.31 kB / 0.7876 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.219, allocations: 0 / 0.7876 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.219, allocations: 0 / 0.7876 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.219, allocations: 4 kB / 0.7876 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.6e-05/0.2191, allocations: 31.92 kB / 0.7877 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004253/0.2195, allocations: 352.7 kB / 0.788 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001783/0.2197, allocations: 82.61 kB / 0.7881 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.406e-05/0.2198, allocations: 32.84 kB / 0.7881 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.2198, allocations: 0 / 0.7881 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001433/0.22, allocations: 79.39 kB / 0.7882 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.383e-06/0.22, allocations: 0 / 0.7882 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0003017/0.2203, allocations: 145.7 kB / 0.7883 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.2203, allocations: 85.08 kB / 0.7884 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.2206, allocations: 275.2 kB / 0.7887 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.2206, allocations: 29.7 kB / 0.7887 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.606e-05/0.2207, allocations: 116.1 kB / 0.7888 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.41e-05/0.2207, allocations: 23.66 kB / 0.7888 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.151e-05/0.2207, allocations: 25.7 kB / 0.7889 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.762e-05/0.2208, allocations: 330.8 kB / 0.7892 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.129e-05/0.2209, allocations: 28 kB / 0.7892 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.05e-05/0.221, allocations: 67.34 kB / 0.7893 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.2211, allocations: 65.7 kB / 0.7893 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2211, allocations: 0 / 0.7893 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001954/0.2213, allocations: 117.4 kB / 0.7894 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.2214, allocations: 8.062 kB / 0.7894 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.2214, allocations: 4 kB / 0.7894 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.2214, allocations: 112 / 0.7894 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.742e-05/0.2215, allocations: 23.86 kB / 0.7895 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.2215, allocations: 0 / 0.7895 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.79e-05/0.2215, allocations: 11.88 kB / 0.7895 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.2216, allocations: 4 kB / 0.7895 GB, free: 6.852 MB / 0.6075 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.0001221/0.2217, allocations: 140.7 kB / 0.7896 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.2217, allocations: 23.72 kB / 0.7896 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.301e-05/0.2218, allocations: 17.39 kB / 0.7897 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.2218, allocations: 4 kB / 0.7897 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2218, allocations: 0 / 0.7897 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2218, allocations: 3.938 kB / 0.7897 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.222, allocations: 225.6 kB / 0.7899 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.222, allocations: 96 / 0.7899 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.214e-05/0.222, allocations: 11.92 kB / 0.7899 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.222, allocations: 0 / 0.7899 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/0.222, allocations: 0 / 0.7899 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.222, allocations: 0 / 0.7899 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2221, allocations: 4 kB / 0.7899 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002204/0.2223, allocations: 152.8 kB / 0.79 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.885e-05/0.2223, allocations: 92.91 kB / 0.7901 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.538e-05/0.2224, allocations: 0 / 0.7901 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.671e-05/0.2224, allocations: 4 kB / 0.7901 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.057e-05/0.2225, allocations: 15.92 kB / 0.7901 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.2225, allocations: 0 / 0.7901 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001675/0.2227, allocations: 196.6 kB / 0.7903 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2227, allocations: 0 / 0.7903 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002338/0.2229, allocations: 27.98 kB / 0.7904 GB, free: 5.855 MB / 0.6075 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.001281/0.2242, allocations: 0.9978 MB / 0.7913 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002083/0.2244, allocations: 87.89 kB / 0.7914 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2244, allocations: 0 / 0.7914 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.096e-05/0.2245, allocations: 35.92 kB / 0.7915 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.2248, allocations: 39.84 kB / 0.7915 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.2268, allocations: 1.976 MB / 0.7934 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.2271, allocations: 0.7279 MB / 0.7941 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.616e-05/0.2272, allocations: 33.59 kB / 0.7942 GB, free: 1.984 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.304e-05/0.2273, allocations: 43.42 kB / 0.7942 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of SimCode: time 3.3e-07/0.2273, allocations: 3.938 kB / 0.7942 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.066/2.293, allocations: 4.293 MB / 0.7984 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002214/2.293, allocations: 237.6 kB / 0.7986 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.168/4.462, allocations: 4.062 kB / 0.7986 GB, free: 13.52 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)