Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Obsolete.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Obsolete.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.001543/0.001543, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001968/0.001968, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.397/1.397, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.795/2.795, allocations: 472.6 MB / 0.7451 GB, free: 4.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 67.45 kB / 0.912 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.297, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002119/0.2992, allocations: 0.8256 MB / 1.069 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3008, allocations: 1.201 MB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.351e-05/0.3009, allocations: 8 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.766e-05/0.3009, allocations: 11.86 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.449e-05/0.301, allocations: 15.86 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005195/0.3015, allocations: 143.2 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001813/0.3017, allocations: 163.7 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.3018, allocations: 24.2 kB / 1.071 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.302, allocations: 71.81 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.452e-05/0.3021, allocations: 59.75 kB / 1.071 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.599e-05/0.3021, allocations: 12 kB / 1.071 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.945e-05/0.3022, allocations: 23.98 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.377e-05/0.3022, allocations: 31.91 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.812e-05/0.3023, allocations: 51.78 kB / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000208/0.3025, allocations: 143.9 kB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3025, allocations: 0 / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3026, allocations: 0 / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.3026, allocations: 0 / 1.071 GB, free: 7.637 MB / 0.8262 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.0007315/0.3033, allocations: 440.9 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3033, allocations: 12.03 kB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.801e-05/0.3034, allocations: 16.75 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.3036, allocations: 184.2 kB / 1.072 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.3036, allocations: 8.375 kB / 1.072 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/0.3036, allocations: 8.375 kB / 1.072 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/0.3039, allocations: 94.19 kB / 1.072 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.304, allocations: 192 / 1.072 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.304, allocations: 3.938 kB / 1.072 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.304, allocations: 4 kB / 1.072 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000357/0.3044, allocations: 91.91 kB / 1.072 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005838/0.305, allocations: 380.5 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002694/0.3052, allocations: 98.59 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.3054, allocations: 64.8 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.3055, allocations: 0 / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003382/0.3058, allocations: 127.2 kB / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.3058, allocations: 0 / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0007114/0.3065, allocations: 209.4 kB / 1.073 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.3066, allocations: 55.41 kB / 1.073 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.3067, allocations: 129.8 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.3068, allocations: 25.7 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.224e-05/0.3068, allocations: 104 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.313e-05/0.3069, allocations: 31.59 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.815e-05/0.307, allocations: 45.69 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.3071, allocations: 322.8 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.3074, allocations: 79.94 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.3076, allocations: 112.2 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/0.3081, allocations: 188.6 kB / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.3081, allocations: 0 / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006423/0.3088, allocations: 275.1 kB / 1.074 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.57e-05/0.3088, allocations: 37.64 kB / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3088, allocations: 0 / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.3088, allocations: 4 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.309, allocations: 31.91 kB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.309, allocations: 4 kB / 1.074 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.3093, allocations: 40.08 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.3093, allocations: 15.98 kB / 1.074 GB, free: 4.18 MB / 0.8262 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.0001087/0.3094, allocations: 134.1 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.561e-05/0.3095, allocations: 7.906 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004861/0.31, allocations: 174.4 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.31, allocations: 0 / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.31, allocations: 0 / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.31, allocations: 0 / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000662/0.3107, allocations: 454.3 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3107, allocations: 4 kB / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.3108, allocations: 23.97 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.3108, allocations: 3.938 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.3108, allocations: 4 kB / 1.075 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3108, allocations: 0 / 1.075 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3109, allocations: 3.938 kB / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004604/0.3113, allocations: 259.3 kB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.3114, allocations: 85.02 kB / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.3114, allocations: 0 / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.3115, allocations: 19.97 kB / 1.075 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.738e-05/0.3116, allocations: 15.92 kB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.3116, allocations: 4 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.539e-05/0.3117, allocations: 97.39 kB / 1.075 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3117, allocations: 4 kB / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002864/0.312, allocations: 35.94 kB / 1.075 GB, free: 2.773 MB / 0.8262 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.0001399/0.3121, allocations: 112.7 kB / 1.075 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005873/0.3127, allocations: 239.3 kB / 1.076 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3127, allocations: 4.062 kB / 1.076 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.313, allocations: 63.95 kB / 1.076 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.3133, allocations: 19.92 kB / 1.076 GB, free: 2.324 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004175/0.3137, allocations: 214.8 kB / 1.076 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.3139, allocations: 0.6963 MB / 1.077 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.227e-05/0.314, allocations: 8.547 kB / 1.077 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.043e-05/0.3141, allocations: 19.44 kB / 1.077 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3141, allocations: 0 / 1.077 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of Templates: time 0.004447/0.3185, allocations: 1.922 MB / 1.078 GB, free: 15.43 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)