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.001103/0.001103, allocations: 105.4 kB / 15.99 MB, free: 6.348 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.001135/0.001135, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.36/1.36, allocations: 222.9 MB / 240.6 MB, free: 13.72 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.665 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 64.42 kB / 0.8127 GB, free: 32.52 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3045, allocations: 140.4 MB / 0.9498 GB, free: 9.234 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002278/0.3068, allocations: 0.8676 MB / 0.9506 GB, free: 8.359 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002041/0.3089, allocations: 1.202 MB / 0.9518 GB, free: 7.141 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.229e-05/0.309, allocations: 0 / 0.9518 GB, free: 7.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.722e-05/0.3091, allocations: 7.938 kB / 0.9518 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.922e-05/0.3092, allocations: 7.875 kB / 0.9518 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005987/0.3098, allocations: 142.6 kB / 0.952 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002242/0.31, allocations: 147.8 kB / 0.9521 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.3101, allocations: 24.2 kB / 0.9521 GB, free: 6.82 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.3103, allocations: 63.78 kB / 0.9522 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001057/0.3104, allocations: 55.8 kB / 0.9522 GB, free: 6.703 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.557e-05/0.3104, allocations: 16 kB / 0.9522 GB, free: 6.688 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.116e-05/0.3105, allocations: 27.98 kB / 0.9523 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.132e-05/0.3106, allocations: 19.92 kB / 0.9523 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.426e-05/0.3107, allocations: 71.75 kB / 0.9524 GB, free: 6.57 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.3108, allocations: 88.08 kB / 0.9524 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.882e-05/0.3108, allocations: 7.984 kB / 0.9525 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3109, allocations: 3.938 kB / 0.9525 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.3109, allocations: 0 / 0.9525 GB, free: 6.473 MB / 0.7325 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.0007905/0.3117, allocations: 440.8 kB / 0.9529 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.3117, allocations: 16.02 kB / 0.9529 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.438e-05/0.3118, allocations: 8.844 kB / 0.9529 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.3119, allocations: 184.2 kB / 0.9531 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.312, allocations: 12.38 kB / 0.9531 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.312, allocations: 12.31 kB / 0.9531 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000307/0.3123, allocations: 94.19 kB / 0.9532 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.3123, allocations: 192 / 0.9532 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.3123, allocations: 7.922 kB / 0.9532 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.3124, allocations: 4 kB / 0.9532 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003526/0.3127, allocations: 91.91 kB / 0.9533 GB, free: 5.52 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000644/0.3134, allocations: 380.5 kB / 0.9537 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000281/0.3137, allocations: 102.6 kB / 0.9537 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.3139, allocations: 56.81 kB / 0.9538 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.3139, allocations: 4 kB / 0.9538 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003632/0.3143, allocations: 115.3 kB / 0.9539 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.3143, allocations: 0 / 0.9539 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.0006952/0.315, allocations: 217.3 kB / 0.9541 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.315, allocations: 55.41 kB / 0.9542 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.3152, allocations: 129.7 kB / 0.9543 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.3152, allocations: 33.7 kB / 0.9543 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.113e-05/0.3153, allocations: 100.1 kB / 0.9544 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.54e-05/0.3154, allocations: 31.55 kB / 0.9545 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.53e-05/0.3155, allocations: 41.7 kB / 0.9545 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.3156, allocations: 326.8 kB / 0.9548 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002545/0.3159, allocations: 79.94 kB / 0.9549 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002766/0.3162, allocations: 116.2 kB / 0.955 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004322/0.3166, allocations: 185.6 kB / 0.9552 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.3166, allocations: 8 kB / 0.9552 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000656/0.3173, allocations: 275.2 kB / 0.9554 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.025e-05/0.3173, allocations: 33.7 kB / 0.9555 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.3174, allocations: 3.984 kB / 0.9555 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3174, allocations: 4 kB / 0.9555 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.3175, allocations: 23.92 kB / 0.9555 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.3176, allocations: 4 kB / 0.9555 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002699/0.3178, allocations: 47.97 kB / 0.9556 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.778e-05/0.3179, allocations: 11.94 kB / 0.9556 GB, free: 3.004 MB / 0.7325 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.0001338/0.318, allocations: 135.7 kB / 0.9557 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.134e-05/0.318, allocations: 11.84 kB / 0.9557 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004863/0.3185, allocations: 169.9 kB / 0.9559 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/0.3185, allocations: 0 / 0.9559 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3185, allocations: 0 / 0.9559 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3186, allocations: 3.984 kB / 0.9559 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006933/0.3193, allocations: 450.2 kB / 0.9563 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3193, allocations: 4 kB / 0.9563 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.3194, allocations: 19.97 kB / 0.9563 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3194, allocations: 0 / 0.9563 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.3194, allocations: 4 kB / 0.9563 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.3194, allocations: 0 / 0.9563 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3194, allocations: 3.938 kB / 0.9563 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004845/0.3199, allocations: 259.3 kB / 0.9566 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.547e-05/0.32, allocations: 88.95 kB / 0.9567 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.32, allocations: 3.984 kB / 0.9567 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.3202, allocations: 15.98 kB / 0.9567 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.931e-05/0.3202, allocations: 15.92 kB / 0.9567 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.3202, allocations: 7.984 kB / 0.9567 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.717e-05/0.3203, allocations: 95.27 kB / 0.9568 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3203, allocations: 4 kB / 0.9568 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002909/0.3206, allocations: 28 kB / 0.9568 GB, free: 1.605 MB / 0.7325 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.0002115/0.3208, allocations: 113.3 kB / 0.9569 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006008/0.3215, allocations: 239.2 kB / 0.9572 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3215, allocations: 8.25 kB / 0.9572 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002065/0.3217, allocations: 65.03 kB / 0.9572 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.322, allocations: 22.73 kB / 0.9573 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004848/0.3225, allocations: 260 kB / 0.9575 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.3228, allocations: 0.6963 MB / 0.9582 GB, free: 140 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.346e-05/0.3229, allocations: 15.42 kB / 0.9582 GB, free: 124 kB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.3229, allocations: 0 / 0.9582 GB, free: 124 kB / 0.7325 GB Notification: Performance of Templates: time 0.003807/0.3267, allocations: 1.644 MB / 0.9598 GB, free: 14.48 MB / 0.7481 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/jenkins1/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