Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001203/0.001203, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.001236/0.001237, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.666/2.666, allocations: 436.5 MB / 0.7104 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.00035, allocations: 12 kB / 0.8708 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7333/0.7336, allocations: 153.7 MB / 1.021 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.0009685/0.7346, allocations: 0.5099 MB / 1.021 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001417/0.7361, allocations: 1.163 MB / 1.022 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.473e-05/0.7361, allocations: 0 / 1.022 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.943e-05/0.7362, allocations: 7.922 kB / 1.022 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.681e-05/0.7363, allocations: 19.97 kB / 1.022 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005162/0.7368, allocations: 126.4 kB / 1.023 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000134/0.7369, allocations: 79.89 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.737, allocations: 24.2 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.7371, allocations: 51.83 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.154e-05/0.7373, allocations: 51.81 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.454e-05/0.7373, allocations: 8 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.996e-05/0.7374, allocations: 23.97 kB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.716e-05/0.7374, allocations: 15.92 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.051e-05/0.7375, allocations: 33.7 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.7376, allocations: 103.7 kB / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.7376, allocations: 0 / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.325e-06/0.7376, allocations: 0 / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.755e-06/0.7377, allocations: 0 / 1.023 GB, free: 14.9 MB / 0.7794 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.000724/0.7384, allocations: 434.7 kB / 1.023 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.7384, allocations: 15.98 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.503e-05/0.7385, allocations: 11.81 kB / 1.023 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.7386, allocations: 177.1 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.7387, allocations: 8 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.7387, allocations: 15.98 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.739, allocations: 109.6 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.739, allocations: 0 / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.7391, allocations: 7.938 kB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.7391, allocations: 3.984 kB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003554/0.7395, allocations: 115.8 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006402/0.7401, allocations: 384.6 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.7404, allocations: 106.6 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.7404, allocations: 0 / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003191/0.7407, allocations: 127.3 kB / 1.024 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.322e-06/0.7408, allocations: 0 / 1.024 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.000684/0.7414, allocations: 245.5 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.7415, allocations: 55.41 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.7416, allocations: 133.7 kB / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.7416, allocations: 33.7 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.294e-05/0.7417, allocations: 96.08 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.7418, allocations: 31.59 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.509e-05/0.7418, allocations: 4 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.7419, allocations: 326.8 kB / 1.025 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.7421, allocations: 91.94 kB / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002628/0.7424, allocations: 118.3 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.7427, allocations: 119.2 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.7427, allocations: 0 / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006333/0.7433, allocations: 287.2 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.7434, allocations: 41.62 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.7434, allocations: 4 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.7434, allocations: 0 / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.7436, allocations: 31.92 kB / 1.026 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.7436, allocations: 0 / 1.026 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.7438, allocations: 67.81 kB / 1.026 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.7439, allocations: 12 kB / 1.026 GB, free: 11.5 MB / 0.7794 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 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001318/0.744, allocations: 137.7 kB / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.736e-05/0.744, allocations: 7.906 kB / 1.026 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004928/0.7445, allocations: 186 kB / 1.026 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.7445, allocations: 3.984 kB / 1.026 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.7446, allocations: 0 / 1.026 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.7446, allocations: 0 / 1.026 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006683/0.7452, allocations: 478.2 kB / 1.027 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.7453, allocations: 0 / 1.027 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.7454, allocations: 23.98 kB / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.7454, allocations: 0 / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.7454, allocations: 4 kB / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.7454, allocations: 0 / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.7454, allocations: 0 / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004676/0.7459, allocations: 291.9 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.7459, allocations: 85 kB / 1.027 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.746, allocations: 4 kB / 1.027 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.7461, allocations: 23.98 kB / 1.027 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.602e-05/0.7462, allocations: 19.95 kB / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.7462, allocations: 8 kB / 1.027 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.163e-05/0.7463, allocations: 97.02 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7463, allocations: 0 / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002729/0.7465, allocations: 35.89 kB / 1.027 GB, free: 10.02 MB / 0.7794 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 (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.0001924/0.7467, allocations: 119.2 kB / 1.028 GB, free: 9.895 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006006/0.7473, allocations: 259.3 kB / 1.028 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.7474, allocations: 7.938 kB / 1.028 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000205/0.7476, allocations: 71.95 kB / 1.028 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.7478, allocations: 20.12 kB / 1.028 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.7482, allocations: 225.2 kB / 1.028 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.7485, allocations: 0.7004 MB / 1.029 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.013e-05/0.7486, allocations: 12.55 kB / 1.029 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.771e-05/0.7486, allocations: 11.44 kB / 1.029 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of SimCode: time 4.51e-07/0.7486, allocations: 0 / 1.029 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of Templates: time 0.004428/0.753, allocations: 1.639 MB / 1.03 GB, free: 6.914 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches