Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",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.00179/0.00179, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001479/0.001479, allocations: 195.6 kB / 16.14 MB, free: 6.66 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.358/1.358, allocations: 205.1 MB / 222 MB, free: 4.707 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.576/1.576, allocations: 292.3 MB / 0.5484 GB, free: 13.66 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.001294/0.001294, allocations: 72.66 kB / 0.6709 GB, free: 26.45 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1595, allocations: 114.5 MB / 0.7828 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001716/0.1612, allocations: 0.8718 MB / 0.7837 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001268/0.1625, allocations: 1.216 MB / 0.7849 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.134e-05/0.1626, allocations: 7.938 kB / 0.7849 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.188e-05/0.1626, allocations: 0 / 0.7849 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.221e-05/0.1627, allocations: 7.875 kB / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.1631, allocations: 142.4 kB / 0.785 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001223/0.1632, allocations: 131.7 kB / 0.7851 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.759e-05/0.1633, allocations: 16.23 kB / 0.7851 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.576e-05/0.1634, allocations: 63.75 kB / 0.7852 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.886e-05/0.1635, allocations: 51.81 kB / 0.7853 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.1635, allocations: 8 kB / 0.7853 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.493e-05/0.1636, allocations: 31.97 kB / 0.7853 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.327e-05/0.1636, allocations: 19.92 kB / 0.7853 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.241e-05/0.1637, allocations: 47.78 kB / 0.7854 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001568/0.1638, allocations: 147.8 kB / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1638, allocations: 0 / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.31e-07/0.1638, allocations: 0 / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.226e-06/0.1639, allocations: 0 / 0.7855 GB, free: 11.12 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005616/0.1644, allocations: 440.9 kB / 0.7859 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.1645, allocations: 12.02 kB / 0.7859 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.145e-05/0.1645, allocations: 34.75 kB / 0.786 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.234e-05/0.1645, allocations: 12.84 kB / 0.786 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.348e-05/0.1646, allocations: 180.2 kB / 0.7861 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.1647, allocations: 12.36 kB / 0.7862 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.1647, allocations: 12.38 kB / 0.7862 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002703/0.165, allocations: 90.19 kB / 0.7863 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.165, allocations: 7.875 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.165, allocations: 15.98 kB / 0.7863 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.165, allocations: 3.938 kB / 0.7863 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003181/0.1653, allocations: 87.91 kB / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004708/0.1658, allocations: 388.5 kB / 0.7867 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.166, allocations: 98.58 kB / 0.7868 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.1662, allocations: 56.81 kB / 0.7869 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.1663, allocations: 0 / 0.7869 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002725/0.1665, allocations: 119.3 kB / 0.787 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.1665, allocations: 0 / 0.787 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0005957/0.1671, allocations: 213.3 kB / 0.7872 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.1672, allocations: 59.41 kB / 0.7873 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.486e-05/0.1673, allocations: 132.8 kB / 0.7874 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.1673, allocations: 33.7 kB / 0.7874 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.034e-05/0.1673, allocations: 96.05 kB / 0.7875 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.1674, allocations: 31.62 kB / 0.7875 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.928e-05/0.1675, allocations: 49.69 kB / 0.7876 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.892e-05/0.1675, allocations: 322.8 kB / 0.7879 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.1678, allocations: 87.84 kB / 0.788 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002241/0.168, allocations: 108.2 kB / 0.7881 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.1684, allocations: 185.8 kB / 0.7883 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1684, allocations: 0 / 0.7883 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005434/0.1689, allocations: 263.2 kB / 0.7885 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.291e-05/0.169, allocations: 42.62 kB / 0.7886 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.169, allocations: 0 / 0.7886 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.169, allocations: 4 kB / 0.7886 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.1691, allocations: 23.91 kB / 0.7886 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.1691, allocations: 4 kB / 0.7886 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002388/0.1694, allocations: 51.86 kB / 0.7886 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.1694, allocations: 8 kB / 0.7886 GB, free: 7.617 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.y,$PRE.booPul1.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 8.399e-05/0.1695, allocations: 133.7 kB / 0.7888 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.878e-05/0.1695, allocations: 7.906 kB / 0.7888 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004051/0.1699, allocations: 173.9 kB / 0.7889 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1699, allocations: 0 / 0.7889 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.17, allocations: 0 / 0.7889 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.17, allocations: 4 kB / 0.7889 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005509/0.1705, allocations: 446.3 kB / 0.7894 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1705, allocations: 4 kB / 0.7894 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.417e-05/0.1706, allocations: 19.92 kB / 0.7894 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1706, allocations: 4 kB / 0.7894 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.1707, allocations: 7.984 kB / 0.7894 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1707, allocations: 0 / 0.7894 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.1707, allocations: 7.922 kB / 0.7894 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003853/0.1711, allocations: 260 kB / 0.7897 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.148e-05/0.1711, allocations: 89.02 kB / 0.7897 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.1711, allocations: 4 kB / 0.7897 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.1712, allocations: 15.92 kB / 0.7898 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.471e-05/0.1713, allocations: 23.91 kB / 0.7898 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.1713, allocations: 0 / 0.7898 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.352e-05/0.1714, allocations: 98.27 kB / 0.7899 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1714, allocations: 0 / 0.7899 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002444/0.1716, allocations: 39.94 kB / 0.7899 GB, free: 6.203 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: 9 (zeroCrossing.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * 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.0006239/0.1723, allocations: 0.8052 MB / 0.7907 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004685/0.1727, allocations: 239.2 kB / 0.7909 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1727, allocations: 0 / 0.7909 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001782/0.1729, allocations: 67.89 kB / 0.791 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.1732, allocations: 24.17 kB / 0.791 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.1753, allocations: 1.905 MB / 0.7929 GB, free: 3.02 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000177/0.1755, allocations: 0.6926 MB / 0.7936 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5e-05/0.1755, allocations: 16.48 kB / 0.7936 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.261e-05/0.1756, allocations: 31.42 kB / 0.7936 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.1756, allocations: 0 / 0.7936 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.211/1.387, allocations: 2.832 MB / 0.7964 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/1.387, allocations: 205.4 kB / 0.7966 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/3.071, allocations: 11.31 kB / 0.7966 GB, free: 15.28 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)