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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008226/0.0008226, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0009611/0.0009611, allocations: 172.7 kB / 15.95 MB, free: 208 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.477/1.477, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.692/2.692, allocations: 437.8 MB / 0.7117 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003754/0.0003755, allocations: 16 kB / 0.8722 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8034/0.8038, allocations: 153.8 MB / 1.022 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001372/0.8053, allocations: 0.5253 MB / 1.023 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001734/0.8071, allocations: 1.179 MB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.8071, allocations: 0 / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.131e-05/0.8072, allocations: 7.938 kB / 1.024 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.382e-05/0.8072, allocations: 3.938 kB / 1.024 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005412/0.8078, allocations: 131.6 kB / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000152/0.808, allocations: 123.7 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.8081, allocations: 20.2 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.8082, allocations: 63.88 kB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.433e-05/0.8083, allocations: 47.81 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.8083, allocations: 8 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.644e-05/0.8084, allocations: 19.98 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.88e-05/0.8084, allocations: 15.92 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.848e-05/0.8085, allocations: 45.62 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001842/0.8087, allocations: 99.77 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.8087, allocations: 0 / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.964e-06/0.8087, allocations: 0 / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.8087, allocations: 0 / 1.025 GB, free: 13.8 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.0008475/0.8096, allocations: 438.6 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.8096, allocations: 12.56 kB / 1.025 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.256e-05/0.8097, allocations: 11.89 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.8099, allocations: 171 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.8099, allocations: 8 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.8099, allocations: 15.98 kB / 1.025 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.8102, allocations: 117.5 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.8103, allocations: 0 / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.8103, allocations: 3.984 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.8103, allocations: 0 / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003386/0.8106, allocations: 107.9 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006611/0.8113, allocations: 388.5 kB / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002577/0.8116, allocations: 106.6 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.8118, allocations: 76.75 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.8118, allocations: 3.938 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.8121, allocations: 123.3 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 3.247e-06/0.8122, allocations: 4 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0007111/0.8129, allocations: 237.4 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.8129, allocations: 55.41 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.813, allocations: 133.7 kB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.8131, allocations: 29.7 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.991e-05/0.8132, allocations: 104.1 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.8132, allocations: 35.59 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.68e-05/0.8132, allocations: 4 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001293/0.8134, allocations: 322.8 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.8136, allocations: 87.94 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.8139, allocations: 125.5 kB / 1.027 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/0.8141, allocations: 112.8 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.8141, allocations: 0 / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005982/0.8147, allocations: 291.6 kB / 1.028 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.692e-05/0.8148, allocations: 37.83 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.8148, allocations: 4 kB / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.8148, allocations: 0 / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.815, allocations: 31.91 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.934e-06/0.815, allocations: 3.938 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002582/0.8153, allocations: 67.8 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.8153, allocations: 11.98 kB / 1.028 GB, free: 10.33 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.0001166/0.8154, allocations: 125.8 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/0.8154, allocations: 7.906 kB / 1.028 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000465/0.8159, allocations: 197.9 kB / 1.028 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.8159, allocations: 4 kB / 1.028 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.8159, allocations: 0 / 1.028 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.8159, allocations: 0 / 1.028 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006641/0.8166, allocations: 478.2 kB / 1.029 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.8166, allocations: 0 / 1.029 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.8167, allocations: 23.97 kB / 1.029 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.8167, allocations: 4 kB / 1.029 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.8168, allocations: 8 kB / 1.029 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.8168, allocations: 0 / 1.029 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8168, allocations: 0 / 1.029 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.8172, allocations: 287.2 kB / 1.029 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.191e-05/0.8173, allocations: 84.95 kB / 1.029 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.513e-05/0.8173, allocations: 4 kB / 1.029 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.8175, allocations: 23.97 kB / 1.029 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.67e-05/0.8175, allocations: 19.97 kB / 1.029 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.8176, allocations: 7.938 kB / 1.029 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.206e-05/0.8176, allocations: 99.27 kB / 1.029 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8176, allocations: 0 / 1.029 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002771/0.8179, allocations: 28 kB / 1.029 GB, free: 8.844 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.0001955/0.8181, allocations: 125.1 kB / 1.029 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005694/0.8187, allocations: 255.4 kB / 1.029 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.8187, allocations: 0 / 1.029 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002131/0.8189, allocations: 83.81 kB / 1.03 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.8192, allocations: 13.67 kB / 1.03 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004683/0.8197, allocations: 229.2 kB / 1.03 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.82, allocations: 0.6965 MB / 1.03 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.193e-05/0.8201, allocations: 12.55 kB / 1.03 GB, free: 7.371 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.144e-05/0.8202, allocations: 11.44 kB / 1.03 GB, free: 7.363 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/0.8202, allocations: 0 / 1.03 GB, free: 7.363 MB / 0.7794 GB Notification: Performance of Templates: time 0.004595/0.8248, allocations: 1.644 MB / 1.032 GB, free: 5.742 MB / 0.7794 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/jenkins/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