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.001441/0.001441, allocations: 108 kB / 15.61 MB, free: 148 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.001841/0.001841, allocations: 194.4 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.444/1.444, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.482/2.482, allocations: 390.2 MB / 0.6647 GB, free: 456 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001306, allocations: 59.91 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7904/0.7917, allocations: 140.4 MB / 0.9496 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002138/0.7939, allocations: 0.8062 MB / 0.9504 GB, free: 8.492 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00133/0.7952, allocations: 1.206 MB / 0.9516 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.739e-05/0.7953, allocations: 5.125 kB / 0.9516 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.499e-05/0.7953, allocations: 3.938 kB / 0.9516 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.231e-05/0.7954, allocations: 13.27 kB / 0.9516 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004178/0.7958, allocations: 156 kB / 0.9517 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000155/0.796, allocations: 147 kB / 0.9519 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.627e-05/0.7961, allocations: 26.38 kB / 0.9519 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.323e-05/0.7962, allocations: 61.83 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.739e-05/0.7962, allocations: 55.59 kB / 0.952 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.299e-05/0.7963, allocations: 12.31 kB / 0.952 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.054e-05/0.7964, allocations: 31.94 kB / 0.952 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.973e-05/0.7964, allocations: 20.45 kB / 0.9521 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.513e-05/0.7965, allocations: 59.08 kB / 0.9521 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001615/0.7966, allocations: 140 kB / 0.9523 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.7966, allocations: 4 kB / 0.9523 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.462e-06/0.7967, allocations: 4 kB / 0.9523 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.7967, allocations: 5.5 kB / 0.9523 GB, free: 7.031 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.0005192/0.7972, allocations: 444.2 kB / 0.9527 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.7972, allocations: 9.125 kB / 0.9527 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/0.7973, allocations: 11.59 kB / 0.9527 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.062e-05/0.7974, allocations: 180.2 kB / 0.9529 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.7974, allocations: 9.344 kB / 0.9529 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.733e-05/0.7974, allocations: 12.31 kB / 0.9529 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.7977, allocations: 99.77 kB / 0.953 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.7977, allocations: 192 / 0.953 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.7977, allocations: 9.031 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.7977, allocations: 1.281 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003125/0.798, allocations: 84.78 kB / 0.9531 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004078/0.7984, allocations: 390.5 kB / 0.9535 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002402/0.7987, allocations: 97.52 kB / 0.9536 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.7989, allocations: 62.41 kB / 0.9536 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.7989, allocations: 1.188 kB / 0.9536 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002958/0.7992, allocations: 112.9 kB / 0.9537 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.7992, allocations: 4 kB / 0.9537 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006487/0.7999, allocations: 215.5 kB / 0.9539 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.7999, allocations: 56.58 kB / 0.954 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.704e-05/0.8, allocations: 127.8 kB / 0.9541 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.8, allocations: 41.78 kB / 0.9542 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.463e-05/0.8001, allocations: 96.36 kB / 0.9542 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.819e-05/0.8001, allocations: 31.91 kB / 0.9543 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.284e-05/0.8002, allocations: 44.64 kB / 0.9543 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.529e-05/0.8003, allocations: 325.7 kB / 0.9546 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.8005, allocations: 77.28 kB / 0.9547 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/0.8007, allocations: 117.9 kB / 0.9548 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000399/0.8011, allocations: 181.1 kB / 0.955 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.8012, allocations: 0 / 0.955 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005678/0.8017, allocations: 261 kB / 0.9552 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.8018, allocations: 45.31 kB / 0.9553 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.8018, allocations: 5.406 kB / 0.9553 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.8018, allocations: 1.469 kB / 0.9553 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.8019, allocations: 22.89 kB / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.802, allocations: 1.156 kB / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.8022, allocations: 51.88 kB / 0.9554 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.8022, allocations: 7.281 kB / 0.9554 GB, free: 4.379 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 8.621e-05/0.8023, allocations: 135 kB / 0.9555 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.921e-05/0.8024, allocations: 15.36 kB / 0.9555 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004706/0.8028, allocations: 165.8 kB / 0.9557 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.8028, allocations: 2.031 kB / 0.9557 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.8029, allocations: 0 / 0.9557 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.8029, allocations: 9.031 kB / 0.9557 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005722/0.8034, allocations: 454 kB / 0.9561 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.8035, allocations: 0 / 0.9561 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.8036, allocations: 15.58 kB / 0.9561 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.8036, allocations: 5.562 kB / 0.9561 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.8036, allocations: 0 / 0.9561 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.8036, allocations: 1.406 kB / 0.9561 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.8036, allocations: 3.938 kB / 0.9561 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004144/0.804, allocations: 260 kB / 0.9564 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.864e-05/0.8041, allocations: 92.53 kB / 0.9565 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.573e-05/0.8041, allocations: 4 kB / 0.9565 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.8042, allocations: 15.55 kB / 0.9565 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/0.8043, allocations: 18.55 kB / 0.9565 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.8043, allocations: 7.828 kB / 0.9565 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.463e-05/0.8043, allocations: 97.77 kB / 0.9566 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8044, allocations: 0 / 0.9566 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002755/0.8046, allocations: 31.59 kB / 0.9566 GB, free: 3.293 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.0001604/0.8048, allocations: 112.5 kB / 0.9567 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005513/0.8054, allocations: 237.4 kB / 0.957 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.8054, allocations: 0 / 0.957 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002007/0.8056, allocations: 72.19 kB / 0.957 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.8059, allocations: 19.73 kB / 0.9571 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003945/0.8063, allocations: 205.7 kB / 0.9573 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001285/0.8064, allocations: 0.7035 MB / 0.9579 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.796e-05/0.8065, allocations: 4.688 kB / 0.9579 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.926e-05/0.8065, allocations: 16.92 kB / 0.958 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.8065, allocations: 0 / 0.958 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of Templates: time 0.004536/0.8111, allocations: 1.929 MB / 0.9598 GB, free: 1.137 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