Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.603/1.603, allocations: 249.3 MB / 261.8 MB, free: 5.789 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001161/0.00116, allocations: 180.8 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 205.2 MB / 0.572 GB, free: 10.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 78.55 kB / 0.6764 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.952e-05/3.966e-05, allocations: 7.984 kB / 0.788 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2435, allocations: 106.3 MB / 0.8918 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8023/1.046, allocations: 132 MB / 1.021 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/1.046, allocations: 76.62 kB / 1.021 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003759/1.05, allocations: 1.354 MB / 1.022 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.654e-06/1.05, allocations: 0 / 1.022 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.766e-06/1.05, allocations: 4 kB / 1.022 GB, free: 1.387 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005505/1.051, allocations: 399.5 kB / 1.023 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/1.051, allocations: 12.02 kB / 1.023 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.652e-05/1.051, allocations: 11.91 kB / 1.023 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/1.051, allocations: 179.8 kB / 1.023 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/1.051, allocations: 7.438 kB / 1.023 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/1.051, allocations: 10.81 kB / 1.023 GB, free: 0.7109 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/1.051, allocations: 76.05 kB / 1.023 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/1.051, allocations: 4 kB / 1.023 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/1.051, allocations: 0 / 1.023 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/1.051, allocations: 0 / 1.023 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/1.051, allocations: 49.67 kB / 1.023 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005872/1.052, allocations: 359.1 kB / 1.023 GB, free: 248 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/1.052, allocations: 123.9 kB / 1.023 GB, free: 132 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.074e-05/1.052, allocations: 34.16 kB / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/1.052, allocations: 0 / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001558/1.052, allocations: 94.88 kB / 1.023 GB, free: 16 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/1.052, allocations: 0 / 1.023 GB, free: 16 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002465/1.053, allocations: 107.8 kB / 1.024 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/1.053, allocations: 55.16 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.688e-05/1.053, allocations: 117.3 kB / 1.024 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/1.053, allocations: 32.39 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.937e-05/1.053, allocations: 94.31 kB / 1.024 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.659e-05/1.053, allocations: 30.2 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.126e-06/1.053, allocations: 3.5 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001205/1.053, allocations: 326.2 kB / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.882e-05/1.053, allocations: 25.69 kB / 1.024 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.347e-05/1.053, allocations: 67.77 kB / 1.024 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.54e-05/1.053, allocations: 18.56 kB / 1.024 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/1.053, allocations: 8 kB / 1.024 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001882/1.054, allocations: 127.9 kB / 1.024 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/1.054, allocations: 10.03 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/1.054, allocations: 0 / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/1.054, allocations: 0 / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/1.054, allocations: 31.91 kB / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/1.054, allocations: 7.953 kB / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/1.054, allocations: 31.38 kB / 1.024 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/1.054, allocations: 4 kB / 1.025 GB, free: 14.98 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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 7.129e-05/1.054, allocations: 112 kB / 1.025 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/1.054, allocations: 7.906 kB / 1.025 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002176/1.054, allocations: 115.6 kB / 1.025 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/1.054, allocations: 4 kB / 1.025 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/1.054, allocations: 0 / 1.025 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/1.054, allocations: 3.953 kB / 1.025 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003778/1.055, allocations: 390.9 kB / 1.025 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/1.055, allocations: 0 / 1.025 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/1.055, allocations: 23.97 kB / 1.025 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/1.055, allocations: 4 kB / 1.025 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/1.055, allocations: 4 kB / 1.025 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/1.055, allocations: 3.953 kB / 1.025 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.055, allocations: 0 / 1.025 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002104/1.055, allocations: 205.8 kB / 1.025 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-05/1.055, allocations: 84.95 kB / 1.025 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/1.055, allocations: 8 kB / 1.025 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/1.055, allocations: 31.78 kB / 1.025 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.68e-05/1.055, allocations: 19.61 kB / 1.025 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/1.055, allocations: 7.984 kB / 1.025 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.207e-05/1.056, allocations: 95.03 kB / 1.026 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/1.056, allocations: 0 / 1.026 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002128/1.056, allocations: 19.5 kB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.trigger,$whenCondition2,$whenCondition1,booPul1.pulseStart,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0001315/1.056, allocations: 107.9 kB / 1.026 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001799/1.056, allocations: 86.55 kB / 1.026 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/1.056, allocations: 0 / 1.026 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.687e-05/1.056, allocations: 42.69 kB / 1.026 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/1.056, allocations: 15.8 kB / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003116/1.057, allocations: 125 kB / 1.026 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/1.057, allocations: 0.7045 MB / 1.027 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.397e-05/1.057, allocations: 12.53 kB / 1.027 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/1.057, allocations: 11.44 kB / 1.027 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of SimCode: time 3.8e-07/1.057, allocations: 0 / 1.027 GB, free: 12.77 MB / 0.6511 GB Notification: Performance of Templates: time 0.003226/1.06, allocations: 1.108 MB / 1.028 GB, free: 11.68 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches