Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00111/0.00111, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001027/0.001027, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.435/1.435, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.249/2.249, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 59.91 kB / 0.9516 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9778/0.9793, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002119/0.9815, allocations: 0.8132 MB / 1.089 GB, free: 5 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001612/0.9831, allocations: 1.205 MB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.101e-05/0.9832, allocations: 1.094 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.308e-05/0.9832, allocations: 13.09 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.021e-05/0.9834, allocations: 12.8 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005916/0.9839, allocations: 153.3 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.9842, allocations: 161.2 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.9843, allocations: 20.73 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.9845, allocations: 64.55 kB / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/0.9846, allocations: 63.25 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.433e-05/0.9847, allocations: 13.69 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.36e-05/0.9848, allocations: 30.5 kB / 1.091 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.421e-05/0.9848, allocations: 20.67 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.492e-05/0.9849, allocations: 63.75 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.9851, allocations: 135.8 kB / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.9852, allocations: 0 / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9852, allocations: 3.938 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.9852, allocations: 0.75 kB / 1.091 GB, free: 3.781 MB / 0.8575 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.0006586/0.9858, allocations: 444.2 kB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.9859, allocations: 9.406 kB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.116e-05/0.9859, allocations: 12.7 kB / 1.092 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.838e-05/0.986, allocations: 189.7 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.9861, allocations: 14.28 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.9861, allocations: 9 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.9864, allocations: 96.52 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.9864, allocations: 192 / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.9864, allocations: 6.203 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.9865, allocations: 0.875 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003484/0.9868, allocations: 95.41 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005764/0.9874, allocations: 376.1 kB / 1.093 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.9877, allocations: 96.08 kB / 1.093 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.9879, allocations: 61.91 kB / 1.093 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.9879, allocations: 2.297 kB / 1.093 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.9882, allocations: 117.6 kB / 1.093 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.563e-06/0.9882, allocations: 4.875 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0007174/0.989, allocations: 215.4 kB / 1.093 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.989, allocations: 54.38 kB / 1.093 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.268e-05/0.9891, allocations: 130.9 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.9891, allocations: 37.36 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.875e-05/0.9892, allocations: 95.66 kB / 1.093 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.789e-05/0.9892, allocations: 30.33 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.002e-05/0.9893, allocations: 46.84 kB / 1.093 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.165e-05/0.9894, allocations: 325.4 kB / 1.094 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.9896, allocations: 76.5 kB / 1.094 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002696/0.9899, allocations: 115 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004325/0.9903, allocations: 185.7 kB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.9904, allocations: 1.25 kB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006388/0.991, allocations: 266.5 kB / 1.094 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.9911, allocations: 43.88 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.9911, allocations: 1.562 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.9911, allocations: 2.031 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.9912, allocations: 23.67 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.9913, allocations: 6.859 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.9915, allocations: 44.23 kB / 1.094 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.17e-05/0.9916, allocations: 13.91 kB / 1.094 GB, free: 1.473 MB / 0.8575 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 9.222e-05/0.9917, allocations: 135.4 kB / 1.095 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.135e-05/0.9917, allocations: 7.906 kB / 1.095 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004883/0.9922, allocations: 165.5 kB / 1.095 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.9922, allocations: 1.906 kB / 1.095 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.9922, allocations: 1.422 kB / 1.095 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.9922, allocations: 4.562 kB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006544/0.9929, allocations: 464.6 kB / 1.095 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.9929, allocations: 1.578 kB / 1.095 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.993, allocations: 16.47 kB / 1.095 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.993, allocations: 1.328 kB / 1.095 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.993, allocations: 5.594 kB / 1.095 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.993, allocations: 1.391 kB / 1.095 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.993, allocations: 4.812 kB / 1.095 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004555/0.9935, allocations: 262.9 kB / 1.095 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.939e-05/0.9935, allocations: 84.25 kB / 1.096 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.9936, allocations: 10.92 kB / 1.096 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.9937, allocations: 20.03 kB / 1.096 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.284e-05/0.9938, allocations: 15.34 kB / 1.096 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.9938, allocations: 5.203 kB / 1.096 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.641e-05/0.9938, allocations: 93.11 kB / 1.096 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.9938, allocations: 0.7188 kB / 1.096 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002924/0.9941, allocations: 34.61 kB / 1.096 GB, free: 0.5156 MB / 0.8575 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.0001631/0.9943, allocations: 113.5 kB / 1.096 GB, free: 432 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005869/0.9949, allocations: 231.4 kB / 1.096 GB, free: 320 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.9949, allocations: 0 / 1.096 GB, free: 320 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002281/0.9952, allocations: 73.2 kB / 1.096 GB, free: 300 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.9955, allocations: 21.09 kB / 1.096 GB, free: 292 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004655/0.9959, allocations: 219.7 kB / 1.096 GB, free: 108 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.9963, allocations: 0.6979 MB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.605e-05/0.9963, allocations: 20.62 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.9963, allocations: 0 / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of Templates: time 0.004408/1.001, allocations: 1.656 MB / 1.099 GB, free: 15.23 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches