Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001636/0.001636, allocations: 104.9 kB / 16.27 MB, free: 5.871 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.001823/0.001823, allocations: 188.3 kB / 17.2 MB, free: 5.512 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.433/1.433, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.534/2.534, allocations: 437.1 MB / 0.7111 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 68.92 kB / 0.8699 GB, free: 2.227 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3045, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.00218/0.3067, allocations: 0.8199 MB / 1.019 GB, free: 9.848 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001864/0.3086, allocations: 1.2 MB / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.936e-05/0.3086, allocations: 4 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.108e-05/0.3087, allocations: 11.88 kB / 1.02 GB, free: 8.617 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 9.687e-05/0.3088, allocations: 15.84 kB / 1.02 GB, free: 8.602 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005674/0.3094, allocations: 146.4 kB / 1.02 GB, free: 8.461 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.3096, allocations: 159.7 kB / 1.02 GB, free: 8.305 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.3097, allocations: 28.2 kB / 1.02 GB, free: 8.277 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.3099, allocations: 51.91 kB / 1.02 GB, free: 8.227 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.31, allocations: 63.73 kB / 1.02 GB, free: 8.164 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.57e-05/0.31, allocations: 12 kB / 1.02 GB, free: 8.152 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.479e-05/0.3101, allocations: 31.92 kB / 1.02 GB, free: 8.121 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.374e-05/0.3101, allocations: 23.91 kB / 1.02 GB, free: 8.098 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.3103, allocations: 63.77 kB / 1.021 GB, free: 8.035 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002275/0.3105, allocations: 139.9 kB / 1.021 GB, free: 7.898 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.3105, allocations: 0 / 1.021 GB, free: 7.898 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3105, allocations: 0 / 1.021 GB, free: 7.898 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.3105, allocations: 0 / 1.021 GB, free: 7.898 MB / 0.795 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.0007788/0.3113, allocations: 444.8 kB / 1.021 GB, free: 7.406 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.3113, allocations: 12.92 kB / 1.021 GB, free: 7.395 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.978e-05/0.3114, allocations: 12.84 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.3116, allocations: 184.2 kB / 1.021 GB, free: 7.164 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.3116, allocations: 4.375 kB / 1.021 GB, free: 7.16 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.358e-05/0.3116, allocations: 12.38 kB / 1.021 GB, free: 7.148 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.312, allocations: 109.2 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.312, allocations: 192 / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.312, allocations: 11.94 kB / 1.021 GB, free: 7.027 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.312, allocations: 0 / 1.021 GB, free: 7.027 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003456/0.3124, allocations: 87.91 kB / 1.022 GB, free: 6.941 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006741/0.313, allocations: 384.5 kB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002785/0.3133, allocations: 94.64 kB / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/0.3135, allocations: 60.81 kB / 1.022 GB, free: 6.352 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.3136, allocations: 3.938 kB / 1.022 GB, free: 6.348 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003168/0.3139, allocations: 119.2 kB / 1.022 GB, free: 6.219 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.493e-06/0.3139, allocations: 4 kB / 1.022 GB, free: 6.215 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0007093/0.3146, allocations: 209.5 kB / 1.022 GB, free: 6.004 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.3147, allocations: 55.41 kB / 1.022 GB, free: 5.938 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.3148, allocations: 133.7 kB / 1.023 GB, free: 5.797 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.3148, allocations: 37.64 kB / 1.023 GB, free: 5.754 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.939e-05/0.3149, allocations: 92.14 kB / 1.023 GB, free: 5.66 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.374e-05/0.315, allocations: 35.48 kB / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.955e-05/0.3151, allocations: 45.7 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3152, allocations: 322.8 kB / 1.023 GB, free: 5.25 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.3155, allocations: 83.94 kB / 1.023 GB, free: 5.168 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002757/0.3158, allocations: 114.1 kB / 1.023 GB, free: 5.043 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004617/0.3162, allocations: 187.2 kB / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3163, allocations: 0 / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006646/0.3169, allocations: 263.2 kB / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.649e-05/0.317, allocations: 41.69 kB / 1.024 GB, free: 4.523 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.317, allocations: 0 / 1.024 GB, free: 4.523 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.317, allocations: 4 kB / 1.024 GB, free: 4.52 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.3172, allocations: 15.98 kB / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.3172, allocations: 4 kB / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002763/0.3175, allocations: 51.91 kB / 1.024 GB, free: 4.449 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.3175, allocations: 11.94 kB / 1.024 GB, free: 4.438 MB / 0.795 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.0001248/0.3176, allocations: 129.7 kB / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.149e-05/0.3176, allocations: 11.89 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005058/0.3182, allocations: 177.8 kB / 1.024 GB, free: 4.105 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3182, allocations: 0 / 1.024 GB, free: 4.105 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3182, allocations: 0 / 1.024 GB, free: 4.105 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3182, allocations: 4 kB / 1.024 GB, free: 4.102 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007317/0.3189, allocations: 446.9 kB / 1.025 GB, free: 3.609 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3189, allocations: 0 / 1.025 GB, free: 3.609 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.3191, allocations: 23.92 kB / 1.025 GB, free: 3.586 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.3191, allocations: 7.938 kB / 1.025 GB, free: 3.578 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.3191, allocations: 4 kB / 1.025 GB, free: 3.574 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.3191, allocations: 3.984 kB / 1.025 GB, free: 3.57 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3191, allocations: 7.938 kB / 1.025 GB, free: 3.562 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004879/0.3196, allocations: 251.4 kB / 1.025 GB, free: 3.301 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.167e-05/0.3197, allocations: 89 kB / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.3197, allocations: 4 kB / 1.025 GB, free: 3.191 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.3198, allocations: 11.98 kB / 1.025 GB, free: 3.18 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.109e-05/0.3199, allocations: 23.91 kB / 1.025 GB, free: 3.156 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.3199, allocations: 0 / 1.025 GB, free: 3.156 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.78e-05/0.32, allocations: 104.1 kB / 1.025 GB, free: 3.055 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.32, allocations: 4 kB / 1.025 GB, free: 3.051 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002737/0.3203, allocations: 35.94 kB / 1.025 GB, free: 3.016 MB / 0.795 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.0001692/0.3205, allocations: 111.2 kB / 1.025 GB, free: 2.898 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006055/0.3211, allocations: 235.2 kB / 1.025 GB, free: 2.656 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3211, allocations: 256 / 1.025 GB, free: 2.656 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002239/0.3213, allocations: 79.88 kB / 1.025 GB, free: 2.578 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.3216, allocations: 12 kB / 1.025 GB, free: 2.566 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004515/0.3221, allocations: 225.1 kB / 1.026 GB, free: 2.312 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.3224, allocations: 0.6963 MB / 1.026 GB, free: 1.59 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.3225, allocations: 15.44 kB / 1.026 GB, free: 1.578 MB / 0.795 GB Notification: Performance of SimCode: time 2.184e-06/0.3225, allocations: 0 / 1.026 GB, free: 1.578 MB / 0.795 GB Notification: Performance of Templates: time 0.003684/0.3262, allocations: 1.646 MB / 1.028 GB, free: 15.95 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches