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.001188/0.001188, allocations: 104.1 kB / 16.27 MB, free: 6.414 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.001217/0.001217, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.4/1.4, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.514/2.514, allocations: 437 MB / 0.711 GB, free: 4.551 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 72.94 kB / 0.8699 GB, free: 2.242 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2493, 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.002175/0.2515, allocations: 0.8133 MB / 1.019 GB, free: 9.855 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001503/0.2531, allocations: 1.2 MB / 1.02 GB, free: 8.641 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.852e-05/0.2531, allocations: 0 / 1.02 GB, free: 8.641 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.831e-05/0.2532, allocations: 7.875 kB / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.534e-05/0.2533, allocations: 23.84 kB / 1.02 GB, free: 8.609 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005507/0.2539, allocations: 147.9 kB / 1.02 GB, free: 8.469 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.2541, allocations: 159.7 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.906e-05/0.2542, allocations: 24.22 kB / 1.02 GB, free: 8.289 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.2543, allocations: 63.88 kB / 1.02 GB, free: 8.227 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.072e-05/0.2544, allocations: 59.75 kB / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.571e-05/0.2544, allocations: 12 kB / 1.02 GB, free: 8.156 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.17e-05/0.2545, allocations: 27.92 kB / 1.02 GB, free: 8.129 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.152e-05/0.2545, allocations: 23.97 kB / 1.02 GB, free: 8.105 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.087e-05/0.2546, allocations: 51.78 kB / 1.021 GB, free: 8.055 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.2548, allocations: 147.8 kB / 1.021 GB, free: 7.91 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2549, allocations: 4 kB / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of FrontEnd: time 9.92e-07/0.2549, allocations: 0 / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.2549, allocations: 0 / 1.021 GB, free: 7.906 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.0006759/0.2556, allocations: 448.8 kB / 1.021 GB, free: 7.41 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.2556, allocations: 8.922 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.124e-05/0.2557, allocations: 20.77 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.2558, allocations: 172.2 kB / 1.021 GB, free: 7.176 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.2558, allocations: 12.38 kB / 1.021 GB, free: 7.164 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/0.2558, allocations: 8.375 kB / 1.021 GB, free: 7.156 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003069/0.2562, allocations: 102.1 kB / 1.021 GB, free: 7.051 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.2562, allocations: 4.188 kB / 1.021 GB, free: 7.047 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.2562, allocations: 7.922 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.2562, allocations: 0 / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003498/0.2566, allocations: 87.92 kB / 1.021 GB, free: 6.953 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005522/0.2571, allocations: 388.4 kB / 1.022 GB, free: 6.523 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002762/0.2574, allocations: 98.64 kB / 1.022 GB, free: 6.418 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.2576, allocations: 52.83 kB / 1.022 GB, free: 6.363 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.2576, allocations: 3.984 kB / 1.022 GB, free: 6.359 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.2579, allocations: 127.2 kB / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.258, allocations: 0 / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0006816/0.2586, allocations: 205.4 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/0.2587, allocations: 55.41 kB / 1.022 GB, free: 5.949 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.549e-05/0.2588, allocations: 135.2 kB / 1.023 GB, free: 5.809 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.2588, allocations: 29.7 kB / 1.023 GB, free: 5.773 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.916e-05/0.2589, allocations: 96.12 kB / 1.023 GB, free: 5.676 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.441e-05/0.2589, allocations: 35.55 kB / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.341e-05/0.259, allocations: 45.64 kB / 1.023 GB, free: 5.59 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.2591, allocations: 326.8 kB / 1.023 GB, free: 5.262 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002476/0.2594, allocations: 75.94 kB / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.2597, allocations: 118.1 kB / 1.023 GB, free: 5.059 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005041/0.2602, allocations: 190.7 kB / 1.023 GB, free: 4.852 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2602, allocations: 0 / 1.023 GB, free: 4.852 MB / 0.795 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006424/0.2608, allocations: 271.3 kB / 1.024 GB, free: 4.574 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.219e-05/0.2609, allocations: 33.7 kB / 1.024 GB, free: 4.535 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2609, allocations: 4 kB / 1.024 GB, free: 4.531 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.2609, allocations: 0 / 1.024 GB, free: 4.531 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.2611, allocations: 27.97 kB / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.2611, allocations: 0 / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002657/0.2614, allocations: 39.86 kB / 1.024 GB, free: 4.465 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/0.2614, allocations: 20.02 kB / 1.024 GB, free: 4.445 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.0001113/0.2615, allocations: 133.6 kB / 1.024 GB, free: 4.305 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.148e-05/0.2615, allocations: 7.906 kB / 1.024 GB, free: 4.297 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004798/0.262, allocations: 169.9 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.262, allocations: 7.938 kB / 1.024 GB, free: 4.113 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.262, allocations: 11.94 kB / 1.024 GB, free: 4.102 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.2621, allocations: 3.984 kB / 1.024 GB, free: 4.098 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006618/0.2627, allocations: 438.3 kB / 1.024 GB, free: 3.613 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2627, allocations: 0 / 1.024 GB, free: 3.613 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.2629, allocations: 31.91 kB / 1.025 GB, free: 3.582 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2629, allocations: 0 / 1.025 GB, free: 3.582 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.2629, allocations: 0 / 1.025 GB, free: 3.582 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2629, allocations: 0 / 1.025 GB, free: 3.582 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2629, allocations: 3.938 kB / 1.025 GB, free: 3.578 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000462/0.2634, allocations: 259.3 kB / 1.025 GB, free: 3.309 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.326e-05/0.2634, allocations: 85.02 kB / 1.025 GB, free: 3.207 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.2634, allocations: 4 kB / 1.025 GB, free: 3.203 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.2636, allocations: 15.97 kB / 1.025 GB, free: 3.188 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.697e-05/0.2636, allocations: 15.92 kB / 1.025 GB, free: 3.172 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.2637, allocations: 8 kB / 1.025 GB, free: 3.164 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.28e-05/0.2637, allocations: 92.39 kB / 1.025 GB, free: 3.074 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2637, allocations: 0 / 1.025 GB, free: 3.074 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003161/0.2641, allocations: 39.92 kB / 1.025 GB, free: 3.035 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.0001726/0.2642, allocations: 115.2 kB / 1.025 GB, free: 2.914 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000583/0.2648, allocations: 235.2 kB / 1.025 GB, free: 2.672 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2648, allocations: 0 / 1.025 GB, free: 2.672 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002137/0.2651, allocations: 77.22 kB / 1.025 GB, free: 2.598 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000293/0.2654, allocations: 15.98 kB / 1.025 GB, free: 2.582 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000453/0.2658, allocations: 229.1 kB / 1.026 GB, free: 2.324 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.2661, allocations: 0.6924 MB / 1.026 GB, free: 1.605 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.951e-05/0.2661, allocations: 19.42 kB / 1.026 GB, free: 1.59 MB / 0.795 GB Notification: Performance of SimCode: time 2.7e-07/0.2661, allocations: 0 / 1.026 GB, free: 1.59 MB / 0.795 GB Notification: Performance of Templates: time 0.003352/0.2695, allocations: 1.659 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=480 -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