Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.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_9_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_9_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.001206/0.001206, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001399/0.001399, allocations: 192 kB / 16.14 MB, free: 6.691 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.499/1.499, allocations: 222.9 MB / 239.8 MB, free: 4.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.526/2.526, allocations: 390.2 MB / 0.6642 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001357, allocations: 71.89 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7912/0.7926, allocations: 140.4 MB / 0.9489 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002958/0.7956, allocations: 0.8569 MB / 0.9498 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001919/0.7976, allocations: 1.217 MB / 0.951 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.572e-05/0.7977, allocations: 1.562 kB / 0.951 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.71e-05/0.7978, allocations: 11.86 kB / 0.951 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.7979, allocations: 13.5 kB / 0.951 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006405/0.7986, allocations: 128.7 kB / 0.9511 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001891/0.7988, allocations: 128.2 kB / 0.9512 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.7989, allocations: 21.84 kB / 0.9513 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.7991, allocations: 69.88 kB / 0.9513 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.7992, allocations: 49.59 kB / 0.9514 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.041e-05/0.7993, allocations: 8.469 kB / 0.9514 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.7994, allocations: 30.06 kB / 0.9514 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.56e-05/0.7994, allocations: 16.05 kB / 0.9514 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.625e-05/0.7995, allocations: 51.06 kB / 0.9515 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.7998, allocations: 136.4 kB / 0.9516 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.7998, allocations: 0 / 0.9516 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/0.7998, allocations: 0 / 0.9516 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.7998, allocations: 1.156 kB / 0.9516 GB, free: 7.168 MB / 0.7169 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.000881/0.8007, allocations: 454.1 kB / 0.952 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.8007, allocations: 9.469 kB / 0.952 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.117e-05/0.8008, allocations: 12.94 kB / 0.9521 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.801, allocations: 180.1 kB / 0.9522 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.801, allocations: 8.438 kB / 0.9522 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.082e-05/0.801, allocations: 12.91 kB / 0.9522 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003317/0.8014, allocations: 96.56 kB / 0.9523 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.8014, allocations: 4.125 kB / 0.9523 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.8014, allocations: 5.125 kB / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.8014, allocations: 1.219 kB / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003441/0.8018, allocations: 88.19 kB / 0.9524 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006027/0.8024, allocations: 390.5 kB / 0.9528 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.8027, allocations: 90.91 kB / 0.9529 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001866/0.8029, allocations: 65.83 kB / 0.953 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.8029, allocations: 1.25 kB / 0.953 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003554/0.8033, allocations: 116.4 kB / 0.9531 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 2.083e-06/0.8033, allocations: 1.281 kB / 0.9531 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0007022/0.804, allocations: 213.7 kB / 0.9533 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.804, allocations: 53.75 kB / 0.9533 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.484e-05/0.8041, allocations: 132.4 kB / 0.9534 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.8042, allocations: 33.14 kB / 0.9535 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.722e-05/0.8042, allocations: 101.7 kB / 0.9536 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.006e-05/0.8043, allocations: 31.7 kB / 0.9536 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.215e-05/0.8044, allocations: 49 kB / 0.9537 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.826e-05/0.8044, allocations: 325.3 kB / 0.954 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.8047, allocations: 76.19 kB / 0.954 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002837/0.805, allocations: 115.2 kB / 0.9541 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004502/0.8054, allocations: 185.3 kB / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.8054, allocations: 1.406 kB / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006898/0.8061, allocations: 264.7 kB / 0.9546 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.47e-05/0.8062, allocations: 37.39 kB / 0.9546 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.8062, allocations: 1.156 kB / 0.9546 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.8062, allocations: 2.469 kB / 0.9546 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.8064, allocations: 33.03 kB / 0.9546 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.8064, allocations: 2.344 kB / 0.9546 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002738/0.8067, allocations: 48.2 kB / 0.9547 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.921e-05/0.8067, allocations: 10.7 kB / 0.9547 GB, free: 4.5 MB / 0.7169 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.0001176/0.8068, allocations: 126.9 kB / 0.9548 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.445e-05/0.8069, allocations: 12.34 kB / 0.9548 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004973/0.8074, allocations: 174.3 kB / 0.955 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.8074, allocations: 1.156 kB / 0.955 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.8074, allocations: 4 kB / 0.955 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.8074, allocations: 1.031 kB / 0.955 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006521/0.8081, allocations: 456.8 kB / 0.9554 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.8081, allocations: 0.9688 kB / 0.9554 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.8082, allocations: 23.75 kB / 0.9555 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.8082, allocations: 0 / 0.9555 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.8082, allocations: 1.188 kB / 0.9555 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.8082, allocations: 1.219 kB / 0.9555 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.8083, allocations: 7.938 kB / 0.9555 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004934/0.8088, allocations: 259.8 kB / 0.9557 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.8088, allocations: 87.3 kB / 0.9558 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.8088, allocations: 7.969 kB / 0.9558 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.809, allocations: 13.33 kB / 0.9558 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.367e-05/0.8091, allocations: 22.47 kB / 0.9559 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.8091, allocations: 5.125 kB / 0.9559 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.367e-05/0.8091, allocations: 94.73 kB / 0.9559 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8091, allocations: 0 / 0.9559 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000294/0.8094, allocations: 36.73 kB / 0.956 GB, free: 3.41 MB / 0.7169 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.0001872/0.8096, allocations: 106.2 kB / 0.9561 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005956/0.8102, allocations: 235.3 kB / 0.9563 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.8102, allocations: 0 / 0.9563 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002141/0.8105, allocations: 72.8 kB / 0.9564 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.8108, allocations: 22.78 kB / 0.9564 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004732/0.8113, allocations: 214.8 kB / 0.9566 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.8115, allocations: 0.6984 MB / 0.9573 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.071e-05/0.8115, allocations: 9.953 kB / 0.9573 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.299e-05/0.8116, allocations: 12.94 kB / 0.9573 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8116, allocations: 0 / 0.9573 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of Templates: time 0.006174/0.8178, allocations: 1.726 MB / 0.959 GB, free: 1.355 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches