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/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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 108 kB / 15.61 MB, free: 152 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.001539/0.001539, allocations: 196.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002201/0.002201, allocations: 286.9 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9204/0.9204, allocations: 169.3 MB / 0.4982 GB, free: 13.98 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 98.64 kB / 0.5953 GB, free: 27.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.124, allocations: 86.97 MB / 0.6803 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.00256/0.1266, allocations: 1.761 MB / 0.682 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.1279, allocations: 1.024 MB / 0.683 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.256e-05/0.128, allocations: 1.5 kB / 0.683 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000474/0.1285, allocations: 160.1 kB / 0.6832 GB, free: 13.69 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002304/0.1287, allocations: 119.5 kB / 0.6833 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.1291, allocations: 179.6 kB / 0.6834 GB, free: 13.4 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.1293, allocations: 163.6 kB / 0.6836 GB, free: 13.24 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.376e-05/0.1294, allocations: 29.36 kB / 0.6836 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.969e-05/0.1295, allocations: 71.7 kB / 0.6837 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.659e-05/0.1296, allocations: 67.75 kB / 0.6838 GB, free: 13.08 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.1296, allocations: 8 kB / 0.6838 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.1297, allocations: 63.95 kB / 0.6838 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.687e-05/0.1298, allocations: 43.78 kB / 0.6839 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.66e-05/0.1299, allocations: 59.61 kB / 0.6839 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002134/0.1301, allocations: 199.3 kB / 0.6841 GB, free: 12.71 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.1301, allocations: 0 / 0.6841 GB, free: 12.71 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1301, allocations: 0 / 0.6841 GB, free: 12.71 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1301, allocations: 0 / 0.6841 GB, free: 12.71 MB / 494.1 MB 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.0005209/0.1306, allocations: 496.4 kB / 0.6846 GB, free: 12.17 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.1307, allocations: 11.98 kB / 0.6846 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.702e-05/0.1307, allocations: 38.75 kB / 0.6846 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.074e-05/0.1308, allocations: 16.75 kB / 0.6847 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.131, allocations: 257.4 kB / 0.6849 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.131, allocations: 8.312 kB / 0.6849 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.131, allocations: 7.938 kB / 0.6849 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001564/0.1312, allocations: 95.31 kB / 0.685 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.1312, allocations: 0 / 0.685 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.1312, allocations: 3.938 kB / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.1312, allocations: 4 kB / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.326e-05/0.1313, allocations: 35.98 kB / 0.685 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003927/0.1317, allocations: 344.7 kB / 0.6854 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.1319, allocations: 82.61 kB / 0.6855 GB, free: 11.17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.223e-05/0.132, allocations: 36.84 kB / 0.6855 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.132, allocations: 0 / 0.6855 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001346/0.1321, allocations: 79.38 kB / 0.6856 GB, free: 11.04 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.1322, allocations: 0 / 0.6856 GB, free: 11.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002899/0.1324, allocations: 149.4 kB / 0.6857 GB, free: 10.89 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.1325, allocations: 81.11 kB / 0.6858 GB, free: 10.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.1327, allocations: 259.1 kB / 0.686 GB, free: 10.53 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.1327, allocations: 25.7 kB / 0.6861 GB, free: 10.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.178e-05/0.1328, allocations: 124 kB / 0.6862 GB, free: 10.37 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/0.1328, allocations: 23.7 kB / 0.6862 GB, free: 10.35 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.652e-05/0.1329, allocations: 25.66 kB / 0.6862 GB, free: 10.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.46e-05/0.133, allocations: 334.8 kB / 0.6865 GB, free: 9.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.704e-05/0.133, allocations: 24 kB / 0.6866 GB, free: 9.957 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.75e-05/0.1331, allocations: 63.41 kB / 0.6866 GB, free: 9.883 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.1332, allocations: 74.06 kB / 0.6867 GB, free: 9.805 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1332, allocations: 3.938 kB / 0.6867 GB, free: 9.801 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001784/0.1334, allocations: 121.4 kB / 0.6868 GB, free: 9.676 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.1334, allocations: 8.062 kB / 0.6868 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1335, allocations: 4 kB / 0.6868 GB, free: 9.664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.1335, allocations: 0 / 0.6868 GB, free: 9.664 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.42e-05/0.1335, allocations: 11.98 kB / 0.6868 GB, free: 9.652 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.1335, allocations: 160 / 0.6868 GB, free: 9.652 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.44e-05/0.1336, allocations: 15.88 kB / 0.6869 GB, free: 9.637 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.1336, allocations: 4 kB / 0.6869 GB, free: 9.633 MB / 494.1 MB 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 9.474e-05/0.1337, allocations: 137.8 kB / 0.687 GB, free: 9.488 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.1338, allocations: 19.81 kB / 0.687 GB, free: 9.469 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.165e-05/0.1338, allocations: 25.38 kB / 0.687 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.1338, allocations: 4 kB / 0.687 GB, free: 9.438 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.1338, allocations: 4 kB / 0.687 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1338, allocations: 3.938 kB / 0.687 GB, free: 9.43 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.134, allocations: 217.5 kB / 0.6873 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.134, allocations: 0 / 0.6873 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.332e-05/0.134, allocations: 11.92 kB / 0.6873 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.134, allocations: 0 / 0.6873 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.134, allocations: 0 / 0.6873 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.134, allocations: 4 kB / 0.6873 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1341, allocations: 4 kB / 0.6873 GB, free: 9.148 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001976/0.1343, allocations: 148.8 kB / 0.6874 GB, free: 8.984 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.472e-05/0.1343, allocations: 88.92 kB / 0.6875 GB, free: 8.879 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.538e-05/0.1343, allocations: 7.938 kB / 0.6875 GB, free: 8.871 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.383e-05/0.1344, allocations: 0 / 0.6875 GB, free: 8.871 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.353e-05/0.1344, allocations: 19.91 kB / 0.6875 GB, free: 8.852 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.1344, allocations: 4 kB / 0.6875 GB, free: 8.848 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001516/0.1346, allocations: 197.1 kB / 0.6877 GB, free: 8.656 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1346, allocations: 0 / 0.6877 GB, free: 8.656 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002184/0.1348, allocations: 31.98 kB / 0.6877 GB, free: 8.625 MB / 494.1 MB 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.001138/0.136, allocations: 0.9942 MB / 0.6887 GB, free: 7.762 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001832/0.1362, allocations: 83.84 kB / 0.6888 GB, free: 7.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1362, allocations: 0 / 0.6888 GB, free: 7.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.394e-05/0.1363, allocations: 35.98 kB / 0.6888 GB, free: 7.645 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.1365, allocations: 51.58 kB / 0.6889 GB, free: 7.602 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.1383, allocations: 1.949 MB / 0.6908 GB, free: 5.566 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.1385, allocations: 0.7317 MB / 0.6915 GB, free: 4.809 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.279e-05/0.1386, allocations: 21.72 kB / 0.6915 GB, free: 4.789 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.318e-05/0.1386, allocations: 43.42 kB / 0.6916 GB, free: 4.746 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1386, allocations: 0 / 0.6916 GB, free: 4.746 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.216/0.3546, allocations: 4.422 MB / 0.6959 GB, free: 460 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.623/7.978, allocations: 16.34 kB / 0.6959 GB, free: 448 kB / 494.1 MB (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/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)