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.001413/0.001413, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.001339/0.00134, allocations: 196.4 kB / 16.91 MB, free: 5.746 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.469/1.469, allocations: 222.9 MB / 240.6 MB, free: 4.516 MB / 190.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.706/2.706, allocations: 437.1 MB / 0.7107 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 71.89 kB / 0.8694 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5827/0.5846, allocations: 151.6 MB / 1.018 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002213/0.5869, allocations: 0.8817 MB / 1.018 GB, free: 1.832 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001809/0.5887, allocations: 1.198 MB / 1.02 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.594e-05/0.5888, allocations: 0 / 1.02 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.583e-05/0.5889, allocations: 7.922 kB / 1.02 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.734e-05/0.589, allocations: 11.92 kB / 1.02 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.5896, allocations: 134.7 kB / 1.02 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.5898, allocations: 159.7 kB / 1.02 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.5899, allocations: 32.2 kB / 1.02 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.59, allocations: 55.89 kB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.881e-05/0.5902, allocations: 63.73 kB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.05e-05/0.5902, allocations: 12 kB / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.836e-05/0.5903, allocations: 31.92 kB / 1.02 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.863e-05/0.5903, allocations: 15.98 kB / 1.02 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 8.004e-05/0.5904, allocations: 59.77 kB / 1.02 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.5906, allocations: 101.8 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.5906, allocations: 0 / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.034e-06/0.5906, allocations: 3.938 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.5906, allocations: 0 / 1.02 GB, free: 15.95 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.0007487/0.5914, allocations: 452.8 kB / 1.021 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.5914, allocations: 8.031 kB / 1.021 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.44e-05/0.5915, allocations: 12.84 kB / 1.021 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.5916, allocations: 172.2 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.5917, allocations: 12.36 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.046e-05/0.5917, allocations: 8.375 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003084/0.592, allocations: 104.9 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.592, allocations: 192 / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.5921, allocations: 7.938 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.5921, allocations: 3.984 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00033/0.5924, allocations: 87.91 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006243/0.593, allocations: 388.5 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002797/0.5933, allocations: 98.64 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.5935, allocations: 60.81 kB / 1.022 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.5936, allocations: 0 / 1.022 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003059/0.5939, allocations: 119.3 kB / 1.022 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.5939, allocations: 0 / 1.022 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0006833/0.5946, allocations: 213.4 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.5946, allocations: 51.41 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.5948, allocations: 133.9 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.189e-05/0.5948, allocations: 33.7 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.803e-05/0.5949, allocations: 96.02 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.5949, allocations: 39.59 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.151e-05/0.595, allocations: 45.69 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.5952, allocations: 326.8 kB / 1.023 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.5954, allocations: 79.94 kB / 1.023 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.5957, allocations: 108.2 kB / 1.023 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/0.5962, allocations: 191 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5962, allocations: 0 / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006534/0.5969, allocations: 259.1 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.86e-05/0.5969, allocations: 41.62 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.5969, allocations: 4 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.597, allocations: 4.125 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.5971, allocations: 27.97 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.5971, allocations: 0 / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.5974, allocations: 43.8 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.158e-05/0.5974, allocations: 12 kB / 1.023 GB, free: 12.49 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 (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.0001298/0.5976, allocations: 130.2 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.5976, allocations: 15.91 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004937/0.5981, allocations: 165.9 kB / 1.024 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.5981, allocations: 0 / 1.024 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.5981, allocations: 4 kB / 1.024 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.5981, allocations: 0 / 1.024 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007355/0.5989, allocations: 458.3 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.5989, allocations: 0 / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.599, allocations: 19.92 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.599, allocations: 0 / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.599, allocations: 3.984 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.599, allocations: 0 / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.5991, allocations: 11.88 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005025/0.5996, allocations: 260 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.5996, allocations: 85.02 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.5997, allocations: 3.984 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.5998, allocations: 19.98 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.868e-05/0.5999, allocations: 27.91 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.5999, allocations: 4 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.235e-05/0.6, allocations: 98.52 kB / 1.025 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.297e-06/0.6, allocations: 0 / 1.025 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002827/0.6003, allocations: 35.94 kB / 1.025 GB, free: 11.07 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 (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.0001902/0.6005, allocations: 112.6 kB / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006069/0.6011, allocations: 243.3 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.6011, allocations: 3.938 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002209/0.6013, allocations: 67.89 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.6016, allocations: 21.95 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004963/0.6021, allocations: 245 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.6025, allocations: 0.6963 MB / 1.026 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.003e-05/0.6026, allocations: 15.44 kB / 1.026 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of SimCode: time 4.41e-07/0.6026, allocations: 0 / 1.026 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of Templates: time 0.003799/0.6064, allocations: 1.643 MB / 1.028 GB, free: 7.973 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=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