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.401/1.401, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001241/0.00124, allocations: 187.1 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.84/1.84, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.000839/0.000839, allocations: 87.8 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003688, allocations: 11.22 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2139, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1651/0.379, allocations: 132.1 MB / 1.029 GB, free: 11.63 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.3793, allocations: 75.95 kB / 1.029 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003913/0.3833, allocations: 1.356 MB / 1.031 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.034e-06/0.3833, allocations: 0 / 1.031 GB, free: 10.2 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.183e-06/0.3833, allocations: 0 / 1.031 GB, free: 10.2 MB / 0.6823 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.0006226/0.3839, allocations: 418.9 kB / 1.031 GB, free: 9.742 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.384, allocations: 11.97 kB / 1.031 GB, free: 9.73 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.306e-05/0.384, allocations: 11.91 kB / 1.031 GB, free: 9.719 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.3842, allocations: 175 kB / 1.031 GB, free: 9.508 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.3842, allocations: 7.938 kB / 1.031 GB, free: 9.5 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.309e-05/0.3843, allocations: 11.98 kB / 1.031 GB, free: 9.488 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.3846, allocations: 115.8 kB / 1.031 GB, free: 9.371 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.3846, allocations: 4 kB / 1.031 GB, free: 9.367 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.3846, allocations: 0 / 1.031 GB, free: 9.367 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3846, allocations: 0 / 1.031 GB, free: 9.367 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003723/0.385, allocations: 111.9 kB / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006405/0.3856, allocations: 364.6 kB / 1.032 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.3862, allocations: 158.6 kB / 1.032 GB, free: 8.688 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.3862, allocations: 4 kB / 1.032 GB, free: 8.684 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003312/0.3865, allocations: 127.4 kB / 1.032 GB, free: 8.547 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.3866, allocations: 0 / 1.032 GB, free: 8.547 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0006331/0.3872, allocations: 229.7 kB / 1.032 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.3872, allocations: 55.36 kB / 1.032 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.513e-05/0.3873, allocations: 113.2 kB / 1.032 GB, free: 8.129 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.097e-05/0.3874, allocations: 37.69 kB / 1.032 GB, free: 8.086 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.3874, allocations: 99.98 kB / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.68e-05/0.3875, allocations: 31.69 kB / 1.033 GB, free: 7.953 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.3875, allocations: 4 kB / 1.033 GB, free: 7.949 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3876, allocations: 322.8 kB / 1.033 GB, free: 7.625 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.3878, allocations: 63.95 kB / 1.033 GB, free: 7.562 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.388, allocations: 89.36 kB / 1.033 GB, free: 7.465 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.3882, allocations: 72 kB / 1.033 GB, free: 7.395 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3882, allocations: 0 / 1.033 GB, free: 7.395 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004249/0.3887, allocations: 189.4 kB / 1.033 GB, free: 7.203 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.3887, allocations: 10.5 kB / 1.033 GB, free: 7.195 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3887, allocations: 0 / 1.033 GB, free: 7.195 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.3887, allocations: 0 / 1.033 GB, free: 7.195 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.3889, allocations: 36 kB / 1.033 GB, free: 7.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.3889, allocations: 7.984 kB / 1.033 GB, free: 7.152 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.3891, allocations: 35.78 kB / 1.033 GB, free: 7.117 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.3891, allocations: 4 kB / 1.033 GB, free: 7.113 MB / 0.6823 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 () * Number of clocked 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 0.0001101/0.3892, allocations: 133.8 kB / 1.033 GB, free: 6.973 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.837e-05/0.3892, allocations: 7.906 kB / 1.033 GB, free: 6.965 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004502/0.3897, allocations: 177.9 kB / 1.034 GB, free: 6.789 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.3897, allocations: 0 / 1.034 GB, free: 6.789 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3897, allocations: 0 / 1.034 GB, free: 6.789 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3897, allocations: 3.984 kB / 1.034 GB, free: 6.785 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006267/0.3903, allocations: 450.4 kB / 1.034 GB, free: 6.289 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3904, allocations: 0 / 1.034 GB, free: 6.289 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.3905, allocations: 27.97 kB / 1.034 GB, free: 6.262 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3905, allocations: 0 / 1.034 GB, free: 6.262 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.3905, allocations: 8 kB / 1.034 GB, free: 6.254 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.3905, allocations: 3.938 kB / 1.034 GB, free: 6.25 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3905, allocations: 3.953 kB / 1.034 GB, free: 6.246 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004319/0.3909, allocations: 271.9 kB / 1.034 GB, free: 5.965 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.391, allocations: 85.02 kB / 1.034 GB, free: 5.863 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.391, allocations: 4 kB / 1.034 GB, free: 5.859 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.3912, allocations: 31.97 kB / 1.034 GB, free: 5.828 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.719e-05/0.3913, allocations: 19.92 kB / 1.034 GB, free: 5.809 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.3913, allocations: 8 kB / 1.034 GB, free: 5.801 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.551e-05/0.3914, allocations: 94.02 kB / 1.035 GB, free: 5.711 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3914, allocations: 0 / 1.035 GB, free: 5.711 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002344/0.3916, allocations: 24 kB / 1.035 GB, free: 5.688 MB / 0.6823 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) * Number of clocked states: 0 () * 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.000134/0.3918, allocations: 105 kB / 1.035 GB, free: 5.574 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004305/0.3922, allocations: 155.8 kB / 1.035 GB, free: 5.422 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3922, allocations: 0 / 1.035 GB, free: 5.422 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001936/0.3924, allocations: 76.73 kB / 1.035 GB, free: 5.348 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002107/0.3926, allocations: 12.22 kB / 1.035 GB, free: 5.336 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004495/0.3931, allocations: 223.4 kB / 1.035 GB, free: 5.082 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.3933, allocations: 0.7004 MB / 1.036 GB, free: 4.355 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.898e-05/0.3934, allocations: 4.562 kB / 1.036 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.914e-05/0.3935, allocations: 15.42 kB / 1.036 GB, free: 4.336 MB / 0.6823 GB Notification: Performance of SimCode: time 1.603e-06/0.3935, allocations: 0 / 1.036 GB, free: 4.336 MB / 0.6823 GB Notification: Performance of Templates: time 0.003406/0.3969, allocations: 1.101 MB / 1.037 GB, free: 3.246 MB / 0.6823 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