Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.435/1.435, allocations: 249.5 MB / 257 MB, free: 6.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001026/0.001027, allocations: 180.9 kB / 316.3 MB, free: 3.215 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.692/1.692, allocations: 205.3 MB / 0.5671 GB, free: 15.8 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008403/0.0008403, allocations: 89.92 kB / 0.6714 GB, free: 4.918 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.287e-05/2.29e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2499, allocations: 106.3 MB / 0.8852 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8458/1.096, allocations: 132.3 MB / 1.014 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/1.096, allocations: 75.48 kB / 1.015 GB, free: 5.355 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00372/1.1, allocations: 1.36 MB / 1.016 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.633e-06/1.1, allocations: 0 / 1.016 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.688e-06/1.1, allocations: 4 kB / 1.016 GB, free: 4.129 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005509/1.1, allocations: 397.2 kB / 1.016 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/1.1, allocations: 8.031 kB / 1.016 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.326e-05/1.101, allocations: 10.03 kB / 1.016 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/1.101, allocations: 181.2 kB / 1.016 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/1.101, allocations: 0 / 1.016 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/1.101, allocations: 4 kB / 1.016 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001193/1.101, allocations: 38.88 kB / 1.016 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/1.101, allocations: 75.53 kB / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/1.101, allocations: 0 / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/1.101, allocations: 4 kB / 1.017 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/1.101, allocations: 0 / 1.017 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005749/1.102, allocations: 335 kB / 1.017 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003801/1.102, allocations: 129.1 kB / 1.017 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.79e-05/1.102, allocations: 27.92 kB / 1.017 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/1.102, allocations: 0 / 1.017 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000147/1.102, allocations: 82.66 kB / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/1.102, allocations: 4.75 kB / 1.017 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0002341/1.103, allocations: 95.66 kB / 1.017 GB, free: 2.734 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/1.103, allocations: 59.41 kB / 1.017 GB, free: 2.664 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.369e-05/1.103, allocations: 116.3 kB / 1.017 GB, free: 2.547 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/1.103, allocations: 33.33 kB / 1.017 GB, free: 2.512 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.05e-05/1.103, allocations: 91.56 kB / 1.017 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.165e-05/1.103, allocations: 30.95 kB / 1.017 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-06/1.103, allocations: 0 / 1.017 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.103, allocations: 318.3 kB / 1.018 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.431e-05/1.103, allocations: 26.81 kB / 1.018 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.953e-05/1.103, allocations: 61.73 kB / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.683e-05/1.103, allocations: 22.98 kB / 1.018 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/1.103, allocations: 0 / 1.018 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001684/1.103, allocations: 115.1 kB / 1.018 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/1.103, allocations: 8 kB / 1.018 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/1.103, allocations: 4.094 kB / 1.018 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/1.103, allocations: 0 / 1.018 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/1.104, allocations: 31.91 kB / 1.018 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/1.104, allocations: 4 kB / 1.018 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/1.104, allocations: 23.97 kB / 1.018 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/1.104, allocations: 16.08 kB / 1.018 GB, free: 1.809 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.423e-05/1.104, allocations: 111.5 kB / 1.018 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.558e-05/1.104, allocations: 7.906 kB / 1.018 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001906/1.104, allocations: 103.2 kB / 1.018 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/1.104, allocations: 0 / 1.018 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/1.104, allocations: 0 / 1.018 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/1.104, allocations: 0.625 kB / 1.018 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000352/1.104, allocations: 363.2 kB / 1.019 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/1.104, allocations: 0 / 1.019 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/1.105, allocations: 19.98 kB / 1.019 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/1.105, allocations: 8 kB / 1.019 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/1.105, allocations: 3.188 kB / 1.019 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/1.105, allocations: 0 / 1.019 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.105, allocations: 0 / 1.019 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001971/1.105, allocations: 207.2 kB / 1.019 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.646e-05/1.105, allocations: 88.94 kB / 1.019 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/1.105, allocations: 4 kB / 1.019 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/1.105, allocations: 19.98 kB / 1.019 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.997e-05/1.105, allocations: 19.39 kB / 1.019 GB, free: 0.8633 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/1.105, allocations: 8 kB / 1.019 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.117e-05/1.105, allocations: 97.45 kB / 1.019 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/1.105, allocations: 0 / 1.019 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002281/1.105, allocations: 16 kB / 1.019 GB, free: 0.7539 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.trigger,$whenCondition2,$whenCondition1,booPul1.pulseStart,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001862/1.106, allocations: 112.9 kB / 1.019 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001935/1.106, allocations: 74.19 kB / 1.019 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/1.106, allocations: 0 / 1.019 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.091e-05/1.106, allocations: 40.5 kB / 1.019 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/1.106, allocations: 18.73 kB / 1.019 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003801/1.107, allocations: 124.2 kB / 1.019 GB, free: 416 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/1.107, allocations: 0.7001 MB / 1.02 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.075e-05/1.107, allocations: 16.55 kB / 1.02 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.5e-05/1.107, allocations: 11.44 kB / 1.02 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of SimCode: time 2.41e-07/1.107, allocations: 0 / 1.02 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of Templates: time 0.003674/1.111, allocations: 1.027 MB / 1.021 GB, free: 14.64 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches