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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009511/0.009511, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.746/1.746, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.939/1.939, allocations: 292.7 MB / 0.5502 GB, free: 14.45 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.0005284/0.0005284, allocations: 16.22 kB / 0.6743 GB, free: 25.82 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.264, allocations: 116.3 MB / 0.7879 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001109/0.2652, allocations: 0.5407 MB / 0.7884 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001613/0.2668, allocations: 1.204 MB / 0.7896 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.729e-05/0.2669, allocations: 4 kB / 0.7896 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.083e-05/0.2669, allocations: 3.938 kB / 0.7896 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.826e-05/0.267, allocations: 7.922 kB / 0.7896 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004461/0.2674, allocations: 146.9 kB / 0.7897 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.2676, allocations: 135.7 kB / 0.7899 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.471e-05/0.2677, allocations: 16.22 kB / 0.7899 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.925e-05/0.2678, allocations: 59.81 kB / 0.7899 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.027e-05/0.2679, allocations: 43.83 kB / 0.79 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.321e-05/0.2679, allocations: 8 kB / 0.79 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.542e-05/0.268, allocations: 27.97 kB / 0.79 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.453e-05/0.268, allocations: 15.92 kB / 0.79 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.423e-05/0.2681, allocations: 73.42 kB / 0.7901 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001957/0.2683, allocations: 143.8 kB / 0.7902 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2683, allocations: 0 / 0.7902 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2683, allocations: 0 / 0.7902 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.2683, allocations: 0 / 0.7902 GB, free: 9.117 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.0006706/0.269, allocations: 429 kB / 0.7907 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.269, allocations: 8.031 kB / 0.7907 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.725e-05/0.2691, allocations: 12.84 kB / 0.7907 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.2692, allocations: 172.2 kB / 0.7908 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.2693, allocations: 12.38 kB / 0.7909 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.2693, allocations: 8.375 kB / 0.7909 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.2696, allocations: 113.7 kB / 0.791 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.443e-06/0.2696, allocations: 4.125 kB / 0.791 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.2696, allocations: 7.938 kB / 0.791 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2696, allocations: 0 / 0.791 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/0.27, allocations: 115.9 kB / 0.7911 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000599/0.2706, allocations: 392.4 kB / 0.7915 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002737/0.2709, allocations: 106.6 kB / 0.7916 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.2711, allocations: 68.81 kB / 0.7916 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.2711, allocations: 0 / 0.7916 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003342/0.2715, allocations: 135.2 kB / 0.7918 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.382e-06/0.2715, allocations: 0 / 0.7918 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006844/0.2722, allocations: 245.4 kB / 0.792 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.2722, allocations: 55.39 kB / 0.792 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.532e-05/0.2723, allocations: 129.8 kB / 0.7922 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.2724, allocations: 37.62 kB / 0.7922 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.348e-05/0.2725, allocations: 96.14 kB / 0.7923 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.2725, allocations: 39.53 kB / 0.7923 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.366e-05/0.2726, allocations: 25.7 kB / 0.7924 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.2727, allocations: 322.8 kB / 0.7927 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.2729, allocations: 87.94 kB / 0.7928 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.2732, allocations: 132.2 kB / 0.7929 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.2736, allocations: 205.8 kB / 0.7931 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2736, allocations: 0 / 0.7931 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006065/0.2742, allocations: 285.9 kB / 0.7933 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.197e-05/0.2743, allocations: 41.69 kB / 0.7934 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.2743, allocations: 0 / 0.7934 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.2743, allocations: 0 / 0.7934 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.2745, allocations: 32.02 kB / 0.7934 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.2745, allocations: 7.984 kB / 0.7934 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/0.2748, allocations: 59.8 kB / 0.7935 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.2748, allocations: 12 kB / 0.7935 GB, free: 5.512 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 0.0001119/0.2749, allocations: 137.7 kB / 0.7936 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.65e-05/0.2749, allocations: 7.906 kB / 0.7936 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004913/0.2754, allocations: 193.9 kB / 0.7938 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.2755, allocations: 4 kB / 0.7938 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2755, allocations: 0 / 0.7938 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2755, allocations: 0 / 0.7938 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006806/0.2762, allocations: 478.2 kB / 0.7943 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2762, allocations: 4 kB / 0.7943 GB, free: 4.633 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.2763, allocations: 23.92 kB / 0.7943 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.2763, allocations: 0 / 0.7943 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.2763, allocations: 7.984 kB / 0.7943 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.2763, allocations: 0 / 0.7943 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.2763, allocations: 7.938 kB / 0.7943 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004669/0.2768, allocations: 271.4 kB / 0.7946 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-05/0.2769, allocations: 85.02 kB / 0.7947 GB, free: 4.211 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.2769, allocations: 4 kB / 0.7947 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.277, allocations: 15.98 kB / 0.7947 GB, free: 4.191 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.3e-05/0.2771, allocations: 27.84 kB / 0.7947 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.2771, allocations: 4 kB / 0.7947 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.687e-05/0.2772, allocations: 99.27 kB / 0.7948 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2772, allocations: 4 kB / 0.7948 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002665/0.2775, allocations: 32.06 kB / 0.7948 GB, free: 4.027 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.0001793/0.2776, allocations: 118.1 kB / 0.795 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005859/0.2782, allocations: 252.1 kB / 0.7952 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2782, allocations: 0 / 0.7952 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002128/0.2785, allocations: 88.06 kB / 0.7953 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.2788, allocations: 12 kB / 0.7953 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004124/0.2792, allocations: 227.7 kB / 0.7955 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.2794, allocations: 0.6926 MB / 0.7962 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.022e-05/0.2795, allocations: 12.55 kB / 0.7962 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.702e-05/0.2795, allocations: 15.44 kB / 0.7962 GB, free: 2.555 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.2795, allocations: 4 kB / 0.7962 GB, free: 2.551 MB / 0.6075 GB Notification: Performance of Templates: time 0.004138/0.2837, allocations: 1.699 MB / 0.7979 GB, free: 0.8672 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile Environment - environmentSimulation: (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) Environment - environmentSimulation: