Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Or,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 106 kB / 16.35 MB, free: 5.824 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.002645/0.002646, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.378/1.378, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.277/2.277, allocations: 390.3 MB / 0.6655 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 62.72 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.283, allocations: 140.4 MB / 0.9511 GB, free: 7.992 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or): time 0.001992/0.2851, allocations: 0.6531 MB / 0.9518 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00157/0.2866, allocations: 1.193 MB / 0.9529 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.057e-05/0.2867, allocations: 4 kB / 0.9529 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.698e-05/0.2868, allocations: 3.938 kB / 0.9529 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.852e-05/0.2869, allocations: 15.86 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006754/0.2875, allocations: 215.2 kB / 0.9532 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002493/0.2878, allocations: 183.7 kB / 0.9533 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.649e-05/0.2879, allocations: 16 kB / 0.9534 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.288, allocations: 63.94 kB / 0.9534 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.2882, allocations: 67.78 kB / 0.9535 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.533e-05/0.2882, allocations: 16 kB / 0.9535 GB, free: 5.566 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.884e-05/0.2883, allocations: 27.92 kB / 0.9535 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.216e-05/0.2883, allocations: 11.98 kB / 0.9535 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.833e-05/0.2884, allocations: 59.83 kB / 0.9536 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002117/0.2887, allocations: 139.7 kB / 0.9537 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2887, allocations: 0 / 0.9537 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2887, allocations: 4 kB / 0.9537 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.2887, allocations: 4 kB / 0.9537 GB, free: 5.324 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005502/0.2892, allocations: 434.6 kB / 0.9541 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.2893, allocations: 15.95 kB / 0.9542 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.321e-05/0.2894, allocations: 12.84 kB / 0.9542 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.2895, allocations: 168.4 kB / 0.9543 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.2895, allocations: 8.375 kB / 0.9543 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.989e-05/0.2896, allocations: 8.375 kB / 0.9543 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.2897, allocations: 58.17 kB / 0.9544 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.2897, allocations: 192 / 0.9544 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.2897, allocations: 11.92 kB / 0.9544 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.2897, allocations: 0 / 0.9544 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.994e-05/0.2898, allocations: 12 kB / 0.9544 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005292/0.2903, allocations: 352.6 kB / 0.9548 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.838e-05/0.2904, allocations: 42.5 kB / 0.9548 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.865e-05/0.2905, allocations: 16.8 kB / 0.9548 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.2905, allocations: 8 kB / 0.9548 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001687/0.2907, allocations: 75.45 kB / 0.9549 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.014e-06/0.2907, allocations: 0 / 0.9549 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0002446/0.2909, allocations: 101.8 kB / 0.955 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.291, allocations: 63.33 kB / 0.9551 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.064e-05/0.2911, allocations: 113.8 kB / 0.9552 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.2911, allocations: 33.7 kB / 0.9552 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.2912, allocations: 92.12 kB / 0.9553 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.2912, allocations: 15.81 kB / 0.9553 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.544e-05/0.2913, allocations: 49.69 kB / 0.9553 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.2914, allocations: 318.8 kB / 0.9557 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.2916, allocations: 59.97 kB / 0.9557 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.2917, allocations: 92.25 kB / 0.9558 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.2919, allocations: 155.6 kB / 0.9559 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.2919, allocations: 4 kB / 0.9559 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004182/0.2924, allocations: 261.4 kB / 0.9562 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.221e-05/0.2924, allocations: 73.14 kB / 0.9563 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2924, allocations: 8.016 kB / 0.9563 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.2925, allocations: 0 / 0.9563 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.168e-05/0.2925, allocations: 11.94 kB / 0.9563 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.2925, allocations: 3.984 kB / 0.9563 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.2928, allocations: 47.94 kB / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.2929, allocations: 15.92 kB / 0.9564 GB, free: 2.332 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.769e-05/0.293, allocations: 129.7 kB / 0.9565 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.702e-05/0.293, allocations: 15.89 kB / 0.9565 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.613e-05/0.293, allocations: 4.375 kB / 0.9565 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.293, allocations: 4 kB / 0.9565 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.2931, allocations: 0 / 0.9565 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.2931, allocations: 0 / 0.9565 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.2932, allocations: 181.6 kB / 0.9567 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2932, allocations: 3.938 kB / 0.9567 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.197e-05/0.2932, allocations: 7.984 kB / 0.9567 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2932, allocations: 0 / 0.9567 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.2933, allocations: 4 kB / 0.9567 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2933, allocations: 0 / 0.9567 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2933, allocations: 0 / 0.9567 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001698/0.2934, allocations: 113 kB / 0.9568 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.431e-05/0.2935, allocations: 77.11 kB / 0.9569 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.2935, allocations: 0 / 0.9569 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.355e-05/0.2935, allocations: 4 kB / 0.9569 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.2936, allocations: 7.984 kB / 0.9569 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.2936, allocations: 8 kB / 0.9569 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.755e-05/0.2936, allocations: 95.2 kB / 0.957 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.3e-07/0.2937, allocations: 0 / 0.957 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002481/0.2939, allocations: 31.91 kB / 0.957 GB, free: 1.562 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,or1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001602/0.2941, allocations: 103.2 kB / 0.9571 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003517/0.2944, allocations: 250.8 kB / 0.9573 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2944, allocations: 0 / 0.9573 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.98e-05/0.2945, allocations: 27.98 kB / 0.9574 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002388/0.2947, allocations: 16.2 kB / 0.9574 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003881/0.2951, allocations: 162.8 kB / 0.9575 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.2954, allocations: 0.6883 MB / 0.9582 GB, free: 240 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.711e-05/0.2955, allocations: 8.062 kB / 0.9582 GB, free: 232 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.138e-05/0.2955, allocations: 11.44 kB / 0.9582 GB, free: 220 kB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.2955, allocations: 0 / 0.9582 GB, free: 220 kB / 0.7325 GB Notification: Performance of Templates: time 0.004634/0.3001, allocations: 1.842 MB / 0.96 GB, free: 14.39 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Or.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Or.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches