Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 195.1 kB / 16.53 MB, free: 6.699 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.564/1.564, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.844/2.844, allocations: 437 MB / 0.7104 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 59.91 kB / 0.8692 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7071/0.709, allocations: 151.6 MB / 1.017 GB, free: 2.504 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002235/0.7113, allocations: 0.7106 MB / 1.018 GB, free: 1.793 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001766/0.7131, allocations: 1.261 MB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.338e-05/0.7132, allocations: 0 / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.389e-05/0.7132, allocations: 7.938 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.203e-05/0.7133, allocations: 11.86 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000851/0.7142, allocations: 311.7 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000356/0.7145, allocations: 279.6 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.7147, allocations: 16.17 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.7148, allocations: 103.7 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/0.715, allocations: 75.77 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.262e-05/0.715, allocations: 20 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.7151, allocations: 35.98 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.161e-05/0.7152, allocations: 19.92 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.7153, allocations: 83.8 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.7156, allocations: 221.4 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.7156, allocations: 0 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.824e-06/0.7156, allocations: 0 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.7156, allocations: 0 / 1.02 GB, free: 15.36 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007288/0.7164, allocations: 492.2 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.7164, allocations: 12.03 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.4e-05/0.7165, allocations: 16.78 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.7167, allocations: 180.2 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.7167, allocations: 8.375 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.436e-05/0.7167, allocations: 20.38 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.7169, allocations: 58.23 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.7169, allocations: 3.938 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.7169, allocations: 3.984 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.7169, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.471e-05/0.717, allocations: 16 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006363/0.7176, allocations: 420.4 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.856e-05/0.7177, allocations: 34.67 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.476e-05/0.7178, allocations: 24.84 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.7178, allocations: 0 / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002143/0.718, allocations: 99.34 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.718, allocations: 0 / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0003343/0.7183, allocations: 137.5 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.7184, allocations: 63.78 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.7185, allocations: 139.1 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.151e-05/0.7186, allocations: 29.7 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.417e-05/0.7187, allocations: 104 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.7187, allocations: 19.75 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.7189, allocations: 65.67 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.719, allocations: 326.8 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.7192, allocations: 87.95 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002405/0.7195, allocations: 143.5 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.7198, allocations: 236.1 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.7198, allocations: 0 / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006379/0.7205, allocations: 374.1 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.206e-05/0.7206, allocations: 101.1 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.7206, allocations: 0 / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.7206, allocations: 8.188 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.308e-05/0.7206, allocations: 11.94 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.7206, allocations: 0 / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005575/0.7212, allocations: 83.73 kB / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.772e-05/0.7213, allocations: 23.98 kB / 1.024 GB, free: 11.75 MB / 0.7794 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,logicalSwitch.y,booPul3.y,$PRE.booPul3.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 0.0001365/0.7214, allocations: 135.8 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.677e-05/0.7214, allocations: 11.84 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.7215, allocations: 8.375 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.7215, allocations: 0 / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.7215, allocations: 0 / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.7215, allocations: 7.984 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001723/0.7217, allocations: 189.6 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.7217, allocations: 0 / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.172e-05/0.7217, allocations: 4 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.7217, allocations: 4 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.7217, allocations: 7.984 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.7217, allocations: 0 / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.7217, allocations: 0 / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002084/0.7219, allocations: 144.8 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.081e-05/0.722, allocations: 85 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.722, allocations: 4 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.208e-05/0.7221, allocations: 0 / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/0.7221, allocations: 15.98 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.7221, allocations: 4 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7e-05/0.7222, allocations: 96.39 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7222, allocations: 0 / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000269/0.7225, allocations: 44 kB / 1.024 GB, free: 10.91 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.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.0001937/0.7227, allocations: 116.9 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005584/0.7232, allocations: 370.3 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.7233, allocations: 0 / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.92e-05/0.7233, allocations: 39.92 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.7236, allocations: 24.2 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000421/0.7241, allocations: 195 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.7244, allocations: 0.6962 MB / 1.026 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.143e-05/0.7244, allocations: 8.422 kB / 1.026 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.501e-05/0.7245, allocations: 15.44 kB / 1.026 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.7245, allocations: 0 / 1.026 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of Templates: time 0.006165/0.7306, allocations: 2.617 MB / 1.028 GB, free: 6.781 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches