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.001447/0.001447, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00179/0.00179, allocations: 189.6 kB / 16.25 MB, free: 6.633 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.472/1.472, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.502/1.502, allocations: 292.3 MB / 0.5486 GB, free: 13.62 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.00127/0.00127, allocations: 72.09 kB / 0.6711 GB, free: 26.46 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1633, allocations: 114.5 MB / 0.783 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001723/0.165, allocations: 0.8873 MB / 0.7839 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001421/0.1665, allocations: 1.196 MB / 0.785 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.325e-05/0.1665, allocations: 4 kB / 0.785 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.988e-05/0.1666, allocations: 3.938 kB / 0.785 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.811e-05/0.1667, allocations: 11.92 kB / 0.785 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004915/0.1672, allocations: 140.6 kB / 0.7852 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001674/0.1673, allocations: 155.7 kB / 0.7853 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.1675, allocations: 24.2 kB / 0.7853 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.938e-05/0.1676, allocations: 63.83 kB / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.306e-05/0.1676, allocations: 55.8 kB / 0.7855 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.752e-05/0.1677, allocations: 16 kB / 0.7855 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.09e-05/0.1678, allocations: 27.98 kB / 0.7855 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.71e-05/0.1678, allocations: 19.92 kB / 0.7855 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.982e-05/0.1679, allocations: 59.77 kB / 0.7856 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.168, allocations: 143.8 kB / 0.7857 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1681, allocations: 4 kB / 0.7857 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1681, allocations: 0 / 0.7857 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.1681, allocations: 0 / 0.7857 GB, free: 10.96 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.0006644/0.1687, allocations: 440.9 kB / 0.7861 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1688, allocations: 8.031 kB / 0.7861 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.303e-05/0.1688, allocations: 38.75 kB / 0.7862 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.965e-05/0.1689, allocations: 16.83 kB / 0.7862 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.169, allocations: 180.2 kB / 0.7864 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.169, allocations: 8.375 kB / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.886e-05/0.1691, allocations: 8.375 kB / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002792/0.1694, allocations: 101.9 kB / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1694, allocations: 3.938 kB / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.1694, allocations: 7.984 kB / 0.7865 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.1694, allocations: 0 / 0.7865 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002976/0.1697, allocations: 91.86 kB / 0.7866 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005025/0.1702, allocations: 392.4 kB / 0.787 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002353/0.1705, allocations: 94.64 kB / 0.787 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.1706, allocations: 56.81 kB / 0.7871 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.1707, allocations: 0 / 0.7871 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.171, allocations: 123.3 kB / 0.7872 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.171, allocations: 0 / 0.7872 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0005966/0.1716, allocations: 209.3 kB / 0.7874 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.1716, allocations: 55.41 kB / 0.7875 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.874e-05/0.1717, allocations: 133.8 kB / 0.7876 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.1717, allocations: 33.7 kB / 0.7876 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.31e-05/0.1718, allocations: 100 kB / 0.7877 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.699e-05/0.1718, allocations: 31.62 kB / 0.7878 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.442e-05/0.1719, allocations: 45.7 kB / 0.7878 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.208e-05/0.172, allocations: 322.8 kB / 0.7881 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.1722, allocations: 91.78 kB / 0.7882 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.1725, allocations: 108.2 kB / 0.7883 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000357/0.1728, allocations: 185.9 kB / 0.7885 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1728, allocations: 0 / 0.7885 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005358/0.1734, allocations: 267.2 kB / 0.7887 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.1734, allocations: 37.7 kB / 0.7888 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1734, allocations: 4 kB / 0.7888 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.1734, allocations: 0 / 0.7888 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.1736, allocations: 23.97 kB / 0.7888 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1736, allocations: 0 / 0.7888 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002372/0.1738, allocations: 51.92 kB / 0.7888 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.1739, allocations: 11.98 kB / 0.7889 GB, free: 7.461 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 9.163e-05/0.174, allocations: 136.5 kB / 0.789 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.779e-05/0.174, allocations: 7.906 kB / 0.789 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004063/0.1744, allocations: 173.9 kB / 0.7892 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1744, allocations: 0 / 0.7892 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1744, allocations: 4 kB / 0.7892 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1744, allocations: 3.984 kB / 0.7892 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005608/0.175, allocations: 446.3 kB / 0.7896 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.175, allocations: 8 kB / 0.7896 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.656e-05/0.1751, allocations: 23.91 kB / 0.7896 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1751, allocations: 0 / 0.7896 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.1751, allocations: 0 / 0.7896 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1751, allocations: 0 / 0.7896 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.1751, allocations: 3.938 kB / 0.7896 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003867/0.1755, allocations: 256.1 kB / 0.7899 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.041e-05/0.1756, allocations: 85.02 kB / 0.79 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.1756, allocations: 0 / 0.79 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.1757, allocations: 19.97 kB / 0.79 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.1758, allocations: 23.86 kB / 0.79 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.1758, allocations: 4 kB / 0.79 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.425e-05/0.1758, allocations: 94.52 kB / 0.7901 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1758, allocations: 7.938 kB / 0.7901 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002488/0.1761, allocations: 39.92 kB / 0.7901 GB, free: 6.051 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.0006441/0.1767, allocations: 0.8049 MB / 0.7909 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000478/0.1772, allocations: 243.1 kB / 0.7912 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1772, allocations: 0 / 0.7912 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.1774, allocations: 63.95 kB / 0.7912 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.1777, allocations: 28.16 kB / 0.7912 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002135/0.1798, allocations: 1.912 MB / 0.7931 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.18, allocations: 0.6924 MB / 0.7938 GB, free: 2.133 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.707e-05/0.1801, allocations: 12.56 kB / 0.7938 GB, free: 2.121 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.278e-05/0.1802, allocations: 27.42 kB / 0.7938 GB, free: 2.094 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.1802, allocations: 0 / 0.7938 GB, free: 2.094 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.785/1.965, allocations: 2.944 MB / 0.7967 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002935/1.965, allocations: 210.6 kB / 0.7969 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/4.129, allocations: 3.938 kB / 0.7969 GB, free: 15.04 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)