Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.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.Or3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.u3|or1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.u3|or1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001358/0.001358, allocations: 192.4 kB / 16.25 MB, free: 6.641 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.488/1.488, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.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.645/2.645, allocations: 390.2 MB / 0.6643 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 67.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8835/0.8849, allocations: 140.4 MB / 0.9491 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or3): time 0.001855/0.8868, allocations: 0.7553 MB / 0.9498 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001211/0.888, allocations: 1.264 MB / 0.9511 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.722e-05/0.8881, allocations: 0 / 0.9511 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.355e-05/0.8881, allocations: 0 / 0.9511 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.668e-05/0.8882, allocations: 18.41 kB / 0.9511 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007163/0.8889, allocations: 292.2 kB / 0.9514 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002539/0.8892, allocations: 271.3 kB / 0.9516 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.974e-05/0.8893, allocations: 14.88 kB / 0.9517 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.8894, allocations: 103.2 kB / 0.9518 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.504e-05/0.8895, allocations: 79.81 kB / 0.9518 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.131e-05/0.8895, allocations: 22.03 kB / 0.9518 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.696e-05/0.8896, allocations: 38.08 kB / 0.9519 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.034e-05/0.8897, allocations: 12.16 kB / 0.9519 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.592e-05/0.8898, allocations: 83.27 kB / 0.952 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.89, allocations: 215.4 kB / 0.9522 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.89, allocations: 1.062 kB / 0.9522 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.363e-06/0.89, allocations: 0 / 0.9522 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.89, allocations: 4 kB / 0.9522 GB, free: 6.859 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004697/0.8905, allocations: 0.4944 MB / 0.9527 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.8905, allocations: 9.625 kB / 0.9527 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.84e-05/0.8906, allocations: 10.12 kB / 0.9527 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.8907, allocations: 184.6 kB / 0.9529 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.8907, allocations: 7.062 kB / 0.9529 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.8908, allocations: 17.52 kB / 0.9529 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.8909, allocations: 55.33 kB / 0.9529 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.8909, allocations: 3.938 kB / 0.9529 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.8909, allocations: 4.781 kB / 0.9529 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.8909, allocations: 1.156 kB / 0.9529 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.088e-05/0.891, allocations: 26.72 kB / 0.953 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004366/0.8914, allocations: 414.8 kB / 0.9534 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.276e-05/0.8915, allocations: 31.25 kB / 0.9534 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.595e-05/0.8916, allocations: 25.52 kB / 0.9534 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.8916, allocations: 1.406 kB / 0.9534 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.8918, allocations: 100.4 kB / 0.9535 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.8918, allocations: 0 / 0.9535 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002682/0.892, allocations: 137.6 kB / 0.9537 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.8921, allocations: 57.97 kB / 0.9537 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.668e-05/0.8922, allocations: 138 kB / 0.9538 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.8922, allocations: 43.16 kB / 0.9539 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.37e-05/0.8923, allocations: 95.98 kB / 0.954 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.8923, allocations: 15.25 kB / 0.954 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.8924, allocations: 65.95 kB / 0.954 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.404e-05/0.8925, allocations: 325.7 kB / 0.9544 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.8926, allocations: 89.84 kB / 0.9544 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.8928, allocations: 138.7 kB / 0.9546 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.893, allocations: 235.7 kB / 0.9548 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.893, allocations: 0 / 0.9548 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005087/0.8936, allocations: 379 kB / 0.9552 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/0.8936, allocations: 99.97 kB / 0.9553 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.8936, allocations: 1.875 kB / 0.9553 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.8936, allocations: 2.75 kB / 0.9553 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.349e-05/0.8937, allocations: 6.562 kB / 0.9553 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.8937, allocations: 2.469 kB / 0.9553 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004976/0.8942, allocations: 95.72 kB / 0.9554 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.925e-05/0.8942, allocations: 20.67 kB / 0.9554 GB, free: 3.977 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul3.y,$PRE.booPul3.y,or1.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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 8.19e-05/0.8943, allocations: 130.7 kB / 0.9555 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/0.8943, allocations: 11.81 kB / 0.9555 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.626e-05/0.8944, allocations: 13.73 kB / 0.9555 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.8944, allocations: 5.094 kB / 0.9555 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.8944, allocations: 1.375 kB / 0.9555 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.8944, allocations: 0 / 0.9555 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.263e-05/0.8945, allocations: 185 kB / 0.9557 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.8945, allocations: 5.484 kB / 0.9557 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.077e-05/0.8945, allocations: 1.375 kB / 0.9557 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.8945, allocations: 1.5 kB / 0.9557 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.8945, allocations: 1.469 kB / 0.9557 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.8945, allocations: 0 / 0.9557 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.8945, allocations: 7.938 kB / 0.9557 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.8947, allocations: 143.7 kB / 0.9559 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.181e-05/0.8947, allocations: 84.67 kB / 0.956 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.8948, allocations: 0 / 0.956 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.404e-05/0.8948, allocations: 3.5 kB / 0.956 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.8948, allocations: 11.58 kB / 0.956 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-06/0.8948, allocations: 3.5 kB / 0.956 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.396e-05/0.8949, allocations: 99.7 kB / 0.9561 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8949, allocations: 0 / 0.9561 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002544/0.8951, allocations: 46.73 kB / 0.9561 GB, free: 3.293 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,or1.y,booPul3.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001357/0.8953, allocations: 109.7 kB / 0.9562 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003759/0.8957, allocations: 368.3 kB / 0.9566 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.8957, allocations: 3.938 kB / 0.9566 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.583e-05/0.8957, allocations: 47.06 kB / 0.9566 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.896, allocations: 28.16 kB / 0.9566 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003175/0.8963, allocations: 202.1 kB / 0.9568 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.8964, allocations: 0.7003 MB / 0.9575 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.329e-05/0.8965, allocations: 6.062 kB / 0.9575 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.217e-05/0.8965, allocations: 16.31 kB / 0.9575 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8965, allocations: 4.969 kB / 0.9575 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of Templates: time 0.005178/0.9017, allocations: 2.605 MB / 0.9601 GB, free: 0.6328 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Or3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches