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.005856/0.005856, allocations: 96.84 kB / 15.73 MB, free: 6.047 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.001185/0.001185, allocations: 192.8 kB / 16.67 MB, free: 5.957 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.272/2.272, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001221, allocations: 63.89 kB / 0.9509 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.082/1.084, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002366/1.086, allocations: 0.8178 MB / 1.089 GB, free: 4.996 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002028/1.088, allocations: 1.207 MB / 1.09 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.455e-05/1.088, allocations: 5.094 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.8e-05/1.088, allocations: 5.062 kB / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.89e-05/1.088, allocations: 14.52 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005704/1.089, allocations: 152.6 kB / 1.09 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002418/1.089, allocations: 160.1 kB / 1.09 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/1.089, allocations: 21.91 kB / 1.09 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/1.089, allocations: 64.08 kB / 1.09 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/1.09, allocations: 62.59 kB / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/1.09, allocations: 17.94 kB / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.299e-05/1.09, allocations: 23.39 kB / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.635e-05/1.09, allocations: 24.02 kB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.974e-05/1.09, allocations: 55.69 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002624/1.09, allocations: 147.5 kB / 1.091 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/1.09, allocations: 5 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.863e-06/1.09, allocations: 0 / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.302e-06/1.09, allocations: 0 / 1.091 GB, free: 3.773 MB / 0.8575 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.0007568/1.091, allocations: 448.2 kB / 1.091 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.238e-05/1.091, allocations: 10.09 kB / 1.091 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.396e-05/1.091, allocations: 12.8 kB / 1.091 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/1.091, allocations: 173.7 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/1.091, allocations: 5.312 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.985e-05/1.091, allocations: 13.5 kB / 1.091 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004012/1.092, allocations: 95.94 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/1.092, allocations: 192 / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/1.092, allocations: 10.83 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/1.092, allocations: 5.562 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004283/1.092, allocations: 94.52 kB / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007395/1.093, allocations: 377.2 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003246/1.093, allocations: 99.47 kB / 1.092 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/1.094, allocations: 61.8 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/1.094, allocations: 1.531 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004096/1.094, allocations: 117.7 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.412e-06/1.094, allocations: 0 / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0008093/1.095, allocations: 216.2 kB / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/1.095, allocations: 58.03 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/1.095, allocations: 131.2 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/1.095, allocations: 33.02 kB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.16e-05/1.095, allocations: 99.91 kB / 1.093 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.645e-05/1.095, allocations: 31.14 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/1.095, allocations: 46.06 kB / 1.093 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.969e-05/1.095, allocations: 325 kB / 1.093 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002658/1.096, allocations: 81.12 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003496/1.096, allocations: 116.8 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004841/1.096, allocations: 182.3 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.096, allocations: 0 / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006904/1.097, allocations: 267.9 kB / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.982e-05/1.097, allocations: 34.95 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/1.097, allocations: 1.922 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/1.097, allocations: 6.062 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/1.097, allocations: 19.78 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.435e-06/1.097, allocations: 2.844 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/1.098, allocations: 52.98 kB / 1.094 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.991e-05/1.098, allocations: 8.828 kB / 1.094 GB, free: 1.473 MB / 0.8575 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.0001045/1.098, allocations: 131.3 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/1.098, allocations: 8.047 kB / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004909/1.098, allocations: 170.5 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/1.098, allocations: 1.656 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/1.098, allocations: 1.094 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.098, allocations: 0.7969 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006525/1.099, allocations: 451.7 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/1.099, allocations: 4.703 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/1.099, allocations: 21.81 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/1.099, allocations: 0.8438 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/1.099, allocations: 5.562 kB / 1.094 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/1.099, allocations: 5.734 kB / 1.094 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/1.099, allocations: 3.938 kB / 1.094 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004649/1.1, allocations: 260.4 kB / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.686e-05/1.1, allocations: 84.88 kB / 1.095 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/1.1, allocations: 5.688 kB / 1.095 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/1.1, allocations: 15.41 kB / 1.095 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.322e-05/1.1, allocations: 21.3 kB / 1.095 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/1.1, allocations: 3.578 kB / 1.095 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.773e-05/1.1, allocations: 97.83 kB / 1.095 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/1.1, allocations: 0 / 1.095 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002997/1.1, allocations: 39.42 kB / 1.095 GB, free: 0.5195 MB / 0.8575 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.0001937/1.101, allocations: 116.6 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006511/1.101, allocations: 230 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/1.101, allocations: 256 / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.00024/1.101, allocations: 73.3 kB / 1.095 GB, free: 300 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/1.102, allocations: 19.75 kB / 1.095 GB, free: 292 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004741/1.102, allocations: 197.4 kB / 1.096 GB, free: 136 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/1.103, allocations: 0.7028 MB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.632e-05/1.103, allocations: 8.719 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.553e-05/1.103, allocations: 14.64 kB / 1.096 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of SimCode: time 2.21e-07/1.103, allocations: 0 / 1.096 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of Templates: time 0.006028/1.109, allocations: 1.994 MB / 1.098 GB, free: 15.23 MB / 0.8731 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