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.004159/0.004159, allocations: 101.3 kB / 15.73 MB, free: 6.016 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.001215/0.001215, allocations: 194.2 kB / 16.68 MB, free: 5.934 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002481/0.002481, allocations: 275 kB / 290.8 MB, free: 1.762 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9648/0.9648, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002586/0.002586, allocations: 91.86 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1453, allocations: 86.97 MB / 0.7659 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.002823/0.1481, allocations: 1.783 MB / 0.7677 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001514/0.1497, allocations: 1.018 MB / 0.7686 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.499e-05/0.1498, allocations: 4 kB / 0.7686 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005392/0.1503, allocations: 161.9 kB / 0.7688 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002631/0.1506, allocations: 115.6 kB / 0.7689 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004131/0.151, allocations: 170.6 kB / 0.7691 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000208/0.1512, allocations: 175.5 kB / 0.7692 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.755e-05/0.1513, allocations: 24.84 kB / 0.7693 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.1514, allocations: 67.7 kB / 0.7693 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.1516, allocations: 71.75 kB / 0.7694 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.1516, allocations: 8 kB / 0.7694 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.1517, allocations: 67.94 kB / 0.7695 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.604e-05/0.1518, allocations: 47.78 kB / 0.7695 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.679e-05/0.1519, allocations: 59.61 kB / 0.7696 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002711/0.1521, allocations: 195.5 kB / 0.7698 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1522, allocations: 0 / 0.7698 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.232e-06/0.1522, allocations: 0 / 0.7698 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.389e-06/0.1522, allocations: 0 / 0.7698 GB, free: 4.945 MB / 0.5606 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.0006542/0.1528, allocations: 0.4922 MB / 0.7702 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.1529, allocations: 11.97 kB / 0.7703 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.908e-05/0.1529, allocations: 38.75 kB / 0.7703 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.172e-05/0.153, allocations: 16.84 kB / 0.7703 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.1533, allocations: 261.5 kB / 0.7706 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.1533, allocations: 4.375 kB / 0.7706 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.1533, allocations: 7.938 kB / 0.7706 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001811/0.1535, allocations: 91.31 kB / 0.7707 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1535, allocations: 3.984 kB / 0.7707 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-06/0.1535, allocations: 0 / 0.7707 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.1535, allocations: 4 kB / 0.7707 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.365e-05/0.1536, allocations: 39.98 kB / 0.7707 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005185/0.1542, allocations: 348.7 kB / 0.771 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.1544, allocations: 74.67 kB / 0.7711 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.112e-05/0.1544, allocations: 32.84 kB / 0.7711 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.1545, allocations: 11.94 kB / 0.7711 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001581/0.1546, allocations: 87.31 kB / 0.7712 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.1546, allocations: 0 / 0.7712 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10): time 0.0003382/0.155, allocations: 141.5 kB / 0.7714 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.155, allocations: 81.05 kB / 0.7714 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002714/0.1553, allocations: 263.1 kB / 0.7717 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.1554, allocations: 25.7 kB / 0.7717 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.731e-05/0.1554, allocations: 120.1 kB / 0.7718 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.69e-05/0.1555, allocations: 31.77 kB / 0.7719 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.767e-05/0.1555, allocations: 21.72 kB / 0.7719 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1557, allocations: 334.8 kB / 0.7722 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.9e-05/0.1558, allocations: 23.98 kB / 0.7722 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.758e-05/0.1559, allocations: 59.53 kB / 0.7723 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.156, allocations: 77.61 kB / 0.7724 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.156, allocations: 0 / 0.7724 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002044/0.1562, allocations: 121.8 kB / 0.7725 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.1562, allocations: 4 kB / 0.7725 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.1562, allocations: 0 / 0.7725 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.1563, allocations: 7.938 kB / 0.7725 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.895e-05/0.1563, allocations: 11.98 kB / 0.7725 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.928e-06/0.1563, allocations: 160 / 0.7725 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.043e-05/0.1564, allocations: 11.97 kB / 0.7725 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.1564, allocations: 7.984 kB / 0.7725 GB, free: 1.852 MB / 0.5606 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.0001215/0.1566, allocations: 137.8 kB / 0.7726 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.891e-05/0.1566, allocations: 19.86 kB / 0.7727 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.524e-05/0.1566, allocations: 21.39 kB / 0.7727 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.1567, allocations: 0 / 0.7727 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.1567, allocations: 0 / 0.7727 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1567, allocations: 11.88 kB / 0.7727 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.1569, allocations: 225.5 kB / 0.7729 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.1569, allocations: 3.984 kB / 0.7729 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.062e-05/0.1569, allocations: 4 kB / 0.7729 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.1569, allocations: 0 / 0.7729 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.1569, allocations: 3.984 kB / 0.7729 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1569, allocations: 0 / 0.7729 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1569, allocations: 4 kB / 0.7729 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000225/0.1572, allocations: 148.9 kB / 0.7731 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.736e-05/0.1572, allocations: 93.02 kB / 0.7732 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.1573, allocations: 0 / 0.7732 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.975e-05/0.1573, allocations: 4 kB / 0.7732 GB, free: 1.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.792e-05/0.1574, allocations: 19.92 kB / 0.7732 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.824e-06/0.1574, allocations: 0 / 0.7732 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001785/0.1576, allocations: 201 kB / 0.7734 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1576, allocations: 0 / 0.7734 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002947/0.1579, allocations: 27.94 kB / 0.7734 GB, free: 0.8477 MB / 0.5606 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.2552/0.413, allocations: 0.9991 MB / 0.7744 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002945/0.4134, allocations: 72.22 kB / 0.7744 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.4134, allocations: 0.75 kB / 0.7744 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.37e-05/0.4135, allocations: 36.38 kB / 0.7745 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.4138, allocations: 43.44 kB / 0.7745 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.4157, allocations: 1.952 MB / 0.7764 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.4159, allocations: 0.7222 MB / 0.7771 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.234e-05/0.416, allocations: 25.86 kB / 0.7772 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.765e-05/0.416, allocations: 50.22 kB / 0.7772 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of SimCode: time 2.1e-07/0.416, allocations: 4.375 kB / 0.7772 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.436/1.852, allocations: 4.529 MB / 0.7816 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/15.19, allocations: 12.7 kB / 0.7816 GB, free: 12.28 MB / 0.5606 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/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)