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.001125/0.001125, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001168, allocations: 188.6 kB / 16.62 MB, free: 6.582 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.404/1.404, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.716/1.716, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001781/0.001781, allocations: 71.22 kB / 0.6718 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2518, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003823/0.2556, allocations: 1.778 MB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001773/0.2575, allocations: 0.946 MB / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.2576, allocations: 0 / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000653/0.2583, allocations: 166.8 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003383/0.2587, allocations: 115.6 kB / 0.7866 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004396/0.2591, allocations: 140.6 kB / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.2593, allocations: 163.6 kB / 0.7868 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.2594, allocations: 25.05 kB / 0.7869 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.2596, allocations: 75.75 kB / 0.7869 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.2597, allocations: 63.75 kB / 0.787 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.2597, allocations: 8 kB / 0.787 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.2598, allocations: 63.91 kB / 0.7871 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.607e-05/0.2599, allocations: 47.83 kB / 0.7871 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.148e-05/0.26, allocations: 63.61 kB / 0.7872 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002575/0.2603, allocations: 195.7 kB / 0.7874 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2603, allocations: 0 / 0.7874 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2603, allocations: 3.938 kB / 0.7874 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.2603, allocations: 0 / 0.7874 GB, free: 9.406 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.0007051/0.261, allocations: 0.4924 MB / 0.7878 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.2611, allocations: 8.031 kB / 0.7879 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.917e-05/0.2611, allocations: 30.75 kB / 0.7879 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.772e-05/0.2611, allocations: 16.75 kB / 0.7879 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002798/0.2614, allocations: 244.8 kB / 0.7881 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.2615, allocations: 12.36 kB / 0.7881 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.2615, allocations: 11.91 kB / 0.7882 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.2617, allocations: 91.33 kB / 0.7882 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.2617, allocations: 0 / 0.7882 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.2617, allocations: 7.984 kB / 0.7883 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.2617, allocations: 4 kB / 0.7883 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.247e-05/0.2618, allocations: 27.98 kB / 0.7883 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.2623, allocations: 352.6 kB / 0.7886 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.2625, allocations: 74.67 kB / 0.7887 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.875e-05/0.2626, allocations: 36.84 kB / 0.7887 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.2626, allocations: 0 / 0.7887 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001573/0.2628, allocations: 87.3 kB / 0.7888 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.2628, allocations: 0 / 0.7888 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0003247/0.2631, allocations: 145.4 kB / 0.7889 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.2632, allocations: 85.09 kB / 0.789 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.2634, allocations: 275.3 kB / 0.7893 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.2635, allocations: 29.7 kB / 0.7893 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.223e-05/0.2635, allocations: 116.1 kB / 0.7894 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/0.2636, allocations: 19.66 kB / 0.7894 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-05/0.2636, allocations: 29.7 kB / 0.7895 GB, free: 7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.2638, allocations: 327.1 kB / 0.7898 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.508e-05/0.2638, allocations: 31.98 kB / 0.7898 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.061e-05/0.2639, allocations: 63.34 kB / 0.7899 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001263/0.2641, allocations: 77.69 kB / 0.79 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2641, allocations: 0 / 0.79 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000188/0.2643, allocations: 113.4 kB / 0.7901 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.2643, allocations: 4 kB / 0.7901 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2643, allocations: 4.062 kB / 0.7901 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.2643, allocations: 0 / 0.7901 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.073e-05/0.2644, allocations: 12 kB / 0.7901 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.2644, allocations: 0 / 0.7901 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.327e-05/0.2645, allocations: 23.86 kB / 0.7901 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.2645, allocations: 4 kB / 0.7901 GB, free: 6.32 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.0001316/0.2646, allocations: 141.8 kB / 0.7902 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.973e-05/0.2647, allocations: 19.72 kB / 0.7903 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.913e-05/0.2647, allocations: 21.39 kB / 0.7903 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.2648, allocations: 4 kB / 0.7903 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.2648, allocations: 0 / 0.7903 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.2648, allocations: 3.938 kB / 0.7903 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002136/0.265, allocations: 225.6 kB / 0.7905 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.265, allocations: 0 / 0.7905 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.105e-05/0.265, allocations: 4 kB / 0.7905 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.265, allocations: 0 / 0.7905 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.2651, allocations: 0 / 0.7905 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.2651, allocations: 3.984 kB / 0.7905 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2651, allocations: 0 / 0.7905 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002293/0.2653, allocations: 152.8 kB / 0.7907 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.138e-05/0.2654, allocations: 88.92 kB / 0.7907 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.2654, allocations: 7.984 kB / 0.7908 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.757e-05/0.2655, allocations: 4 kB / 0.7908 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.881e-05/0.2655, allocations: 11.92 kB / 0.7908 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.2655, allocations: 0 / 0.7908 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001788/0.2657, allocations: 192.6 kB / 0.7909 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2657, allocations: 8 kB / 0.791 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002448/0.266, allocations: 28 kB / 0.791 GB, free: 5.324 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.001453/0.2674, allocations: 1.008 MB / 0.792 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000233/0.2677, allocations: 79.89 kB / 0.792 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2677, allocations: 0 / 0.792 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.036e-05/0.2678, allocations: 39.98 kB / 0.7921 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.2681, allocations: 37.64 kB / 0.7921 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.2702, allocations: 1.962 MB / 0.794 GB, free: 2.258 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.2705, allocations: 0.724 MB / 0.7947 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.086e-05/0.2706, allocations: 25.72 kB / 0.7948 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.362e-05/0.2707, allocations: 43.42 kB / 0.7948 GB, free: 1.438 MB / 0.6075 GB Notification: Performance of SimCode: time 2e-07/0.2707, allocations: 0 / 0.7948 GB, free: 1.438 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01989/0.2906, allocations: 4.432 MB / 0.7991 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.103/7.393, allocations: 5.688 kB / 0.7991 GB, free: 13.11 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)