Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008547/0.0008543, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.006556/0.006556, allocations: 170.6 kB / 16.27 MB, free: 6.648 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.278/1.278, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.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.9 MB / 0.6664 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003388/0.0003389, allocations: 15.98 kB / 0.8161 GB, free: 13.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7059/0.7062, allocations: 142.4 MB / 0.9552 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.000962/0.7072, allocations: 0.508 MB / 0.9557 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001333/0.7086, allocations: 1.135 MB / 0.9568 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.586e-05/0.7086, allocations: 1.375 kB / 0.9568 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.948e-05/0.7087, allocations: 3.938 kB / 0.9568 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.724e-05/0.7087, allocations: 9.266 kB / 0.9568 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004421/0.7092, allocations: 125 kB / 0.9569 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.7093, allocations: 111.9 kB / 0.957 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.7094, allocations: 19.12 kB / 0.9571 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.552e-05/0.7095, allocations: 44.03 kB / 0.9571 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.937e-05/0.7096, allocations: 43.64 kB / 0.9571 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.7097, allocations: 5.906 kB / 0.9571 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.88e-05/0.7097, allocations: 15.48 kB / 0.9572 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.206e-05/0.7098, allocations: 18.97 kB / 0.9572 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.118e-05/0.7098, allocations: 65.91 kB / 0.9572 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.71, allocations: 107 kB / 0.9573 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.71, allocations: 4 kB / 0.9573 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.795e-06/0.71, allocations: 0.8438 kB / 0.9573 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.71, allocations: 3.938 kB / 0.9574 GB, free: 5.895 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.0005539/0.7106, allocations: 416 kB / 0.9577 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.7106, allocations: 10.16 kB / 0.9578 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.832e-05/0.7107, allocations: 40.23 kB / 0.9578 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.206e-05/0.7107, allocations: 9.969 kB / 0.9578 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.381e-05/0.7108, allocations: 172.3 kB / 0.958 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.7108, allocations: 4.125 kB / 0.958 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.675e-05/0.7109, allocations: 8.906 kB / 0.958 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.7112, allocations: 101 kB / 0.9581 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.7112, allocations: 5.375 kB / 0.9581 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.7112, allocations: 0 / 0.9581 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.7112, allocations: 1.5 kB / 0.9581 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003217/0.7115, allocations: 89.45 kB / 0.9582 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003952/0.7119, allocations: 330.9 kB / 0.9585 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001883/0.7121, allocations: 64.23 kB / 0.9585 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.7123, allocations: 57.19 kB / 0.9586 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.332e-05/0.7123, allocations: 0 / 0.9586 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002474/0.7126, allocations: 109.5 kB / 0.9587 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.7126, allocations: 0 / 0.9587 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0006312/0.7132, allocations: 195.6 kB / 0.9589 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.7133, allocations: 56.5 kB / 0.9589 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.618e-05/0.7134, allocations: 128 kB / 0.9591 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.7134, allocations: 32.08 kB / 0.9591 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.651e-05/0.7134, allocations: 92.33 kB / 0.9592 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.7135, allocations: 18.11 kB / 0.9592 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.513e-05/0.7135, allocations: 14.94 kB / 0.9592 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.185e-05/0.7136, allocations: 320.1 kB / 0.9595 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.7138, allocations: 74.05 kB / 0.9596 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.714, allocations: 98.72 kB / 0.9597 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003714/0.7144, allocations: 165.3 kB / 0.9598 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.7144, allocations: 0 / 0.9598 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005056/0.7149, allocations: 231.1 kB / 0.9601 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/0.715, allocations: 36.86 kB / 0.9601 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.715, allocations: 5.016 kB / 0.9601 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.715, allocations: 1 kB / 0.9601 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.7151, allocations: 28.33 kB / 0.9601 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.7151, allocations: 1.375 kB / 0.9601 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.7154, allocations: 53.08 kB / 0.9602 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.7154, allocations: 17.47 kB / 0.9602 GB, free: 3.445 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 7.427e-05/0.7155, allocations: 127.2 kB / 0.9603 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.385e-05/0.7155, allocations: 10.59 kB / 0.9603 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.599e-05/0.7156, allocations: 9.75 kB / 0.9603 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.7156, allocations: 1.375 kB / 0.9603 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.7156, allocations: 0 / 0.9603 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.7156, allocations: 5.359 kB / 0.9604 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.715e-05/0.7157, allocations: 182.3 kB / 0.9605 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.7157, allocations: 4 kB / 0.9605 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.7158, allocations: 23.11 kB / 0.9606 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.7158, allocations: 1.375 kB / 0.9606 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.669e-06/0.7158, allocations: 1.375 kB / 0.9606 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.7158, allocations: 0 / 0.9606 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.7158, allocations: 3.984 kB / 0.9606 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/0.7162, allocations: 176.5 kB / 0.9607 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.578e-05/0.7163, allocations: 86.38 kB / 0.9608 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.7163, allocations: 1.375 kB / 0.9608 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.677e-05/0.7164, allocations: 20.36 kB / 0.9608 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.7164, allocations: 6.734 kB / 0.9608 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-06/0.7164, allocations: 1.375 kB / 0.9608 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.063e-05/0.7165, allocations: 94.27 kB / 0.9609 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7165, allocations: 4 kB / 0.9609 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002145/0.7167, allocations: 23.25 kB / 0.961 GB, free: 2.746 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006088/0.7173, allocations: 0.7077 MB / 0.9616 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004882/0.7178, allocations: 208.6 kB / 0.9618 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.7178, allocations: 0 / 0.9618 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001958/0.718, allocations: 69.56 kB / 0.9619 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.7183, allocations: 13.36 kB / 0.9619 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/0.7203, allocations: 1.706 MB / 0.9636 GB, free: 500 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.7205, allocations: 0.6927 MB / 0.9643 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.721e-05/0.7206, allocations: 3.594 kB / 0.9643 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.94e-05/0.7206, allocations: 25.75 kB / 0.9643 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of SimCode: time 4.11e-07/0.7206, allocations: 0 / 0.9643 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01246/0.7331, allocations: 2.307 MB / 0.9665 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002162/0.7334, allocations: 206.6 kB / 0.9667 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/2.426, allocations: 1.219 kB / 0.9667 GB, free: 14.39 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches