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.0008973/0.0008975, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001032/0.001033, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.714/1.714, allocations: 292.7 MB / 0.5499 GB, free: 14.57 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.0005228/0.0005228, allocations: 23.25 kB / 0.6739 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.259, allocations: 116.3 MB / 0.7874 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001017/0.26, allocations: 0.5175 MB / 0.7879 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001391/0.2614, allocations: 1.185 MB / 0.7891 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.003e-05/0.2615, allocations: 0 / 0.7891 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.04e-05/0.2615, allocations: 7.938 kB / 0.7891 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.549e-05/0.2616, allocations: 11.91 kB / 0.7891 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005044/0.2622, allocations: 126.8 kB / 0.7892 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.2623, allocations: 127.7 kB / 0.7893 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.2624, allocations: 28.14 kB / 0.7894 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.741e-05/0.2625, allocations: 51.83 kB / 0.7894 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.471e-05/0.2626, allocations: 51.81 kB / 0.7895 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.2626, allocations: 4 kB / 0.7895 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.458e-05/0.2627, allocations: 19.98 kB / 0.7895 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.312e-05/0.2627, allocations: 19.91 kB / 0.7895 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.195e-05/0.2628, allocations: 45.64 kB / 0.7896 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.2629, allocations: 95.98 kB / 0.7896 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2629, allocations: 0 / 0.7896 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.573e-06/0.263, allocations: 8 kB / 0.7897 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.263, allocations: 0 / 0.7897 GB, free: 9.539 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.0005843/0.2635, allocations: 428.8 kB / 0.7901 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.2636, allocations: 8.031 kB / 0.7901 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.519e-05/0.2636, allocations: 34.56 kB / 0.7901 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.96e-05/0.2637, allocations: 11.91 kB / 0.7901 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.2638, allocations: 178.9 kB / 0.7903 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.2638, allocations: 12 kB / 0.7903 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.445e-05/0.2639, allocations: 15.94 kB / 0.7903 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002579/0.2641, allocations: 105.6 kB / 0.7904 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.2641, allocations: 4 kB / 0.7904 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.2642, allocations: 11.98 kB / 0.7904 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.2642, allocations: 0 / 0.7904 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003019/0.2645, allocations: 103.9 kB / 0.7905 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005207/0.265, allocations: 392.5 kB / 0.7909 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002466/0.2653, allocations: 102.7 kB / 0.791 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.2654, allocations: 64.81 kB / 0.7911 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.2655, allocations: 7.984 kB / 0.7911 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003027/0.2658, allocations: 131.3 kB / 0.7912 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.392e-06/0.2658, allocations: 0 / 0.7912 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006175/0.2664, allocations: 241.3 kB / 0.7914 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/0.2665, allocations: 59.36 kB / 0.7915 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.834e-05/0.2666, allocations: 137.2 kB / 0.7916 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.2666, allocations: 33.7 kB / 0.7916 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.448e-05/0.2667, allocations: 100 kB / 0.7917 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.2667, allocations: 27.64 kB / 0.7918 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.554e-05/0.2667, allocations: 11.94 kB / 0.7918 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.468e-05/0.2668, allocations: 314.8 kB / 0.7921 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/0.2671, allocations: 95.84 kB / 0.7922 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.2673, allocations: 124.2 kB / 0.7923 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.2675, allocations: 109.7 kB / 0.7924 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2675, allocations: 7.938 kB / 0.7924 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005608/0.2681, allocations: 283.1 kB / 0.7927 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.2682, allocations: 37.7 kB / 0.7927 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.2682, allocations: 4 kB / 0.7927 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.2682, allocations: 0 / 0.7927 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.2683, allocations: 31.92 kB / 0.7927 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.2683, allocations: 3.938 kB / 0.7927 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.2686, allocations: 63.89 kB / 0.7928 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.2686, allocations: 11.98 kB / 0.7928 GB, free: 6.031 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 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000113/0.2687, allocations: 133.8 kB / 0.7929 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.8e-05/0.2688, allocations: 7.906 kB / 0.793 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000422/0.2692, allocations: 197.8 kB / 0.7931 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2692, allocations: 0 / 0.7931 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2692, allocations: 3.953 kB / 0.7931 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2692, allocations: 0 / 0.7931 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006121/0.2698, allocations: 466.4 kB / 0.7936 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2698, allocations: 7.938 kB / 0.7936 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.27, allocations: 23.98 kB / 0.7936 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.27, allocations: 3.984 kB / 0.7936 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.27, allocations: 3.953 kB / 0.7936 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.27, allocations: 4 kB / 0.7936 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.27, allocations: 0 / 0.7936 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004162/0.2704, allocations: 275.3 kB / 0.7939 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.728e-05/0.2705, allocations: 89.02 kB / 0.794 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.2705, allocations: 8 kB / 0.794 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.2706, allocations: 19.94 kB / 0.794 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.248e-05/0.2707, allocations: 23.89 kB / 0.794 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.2707, allocations: 4 kB / 0.794 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.749e-05/0.2708, allocations: 91.39 kB / 0.7941 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2708, allocations: 4 kB / 0.7941 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002563/0.271, allocations: 35.94 kB / 0.7942 GB, free: 4.551 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007179/0.2718, allocations: 0.8245 MB / 0.795 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005027/0.2723, allocations: 260.1 kB / 0.7952 GB, free: 3.438 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2723, allocations: 0 / 0.7952 GB, free: 3.438 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.2725, allocations: 76.2 kB / 0.7953 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.2728, allocations: 20.38 kB / 0.7953 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.2743, allocations: 0.8647 MB / 0.7961 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.2746, allocations: 0.6926 MB / 0.7968 GB, free: 1.695 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.884e-05/0.2747, allocations: 12.55 kB / 0.7968 GB, free: 1.684 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.686e-05/0.2748, allocations: 35.36 kB / 0.7969 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of SimCode: time 3.91e-07/0.2748, allocations: 0 / 0.7969 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01283/0.2876, allocations: 2.729 MB / 0.7995 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001487/0.2878, allocations: 210.5 kB / 0.7997 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.132, allocations: 0 / 0.7997 GB, free: 14.81 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/linux/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) Environment - environmentSimulation: