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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_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.005327/0.005327, allocations: 99.95 kB / 15.73 MB, free: 6.055 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.00112/0.00112, allocations: 189.4 kB / 16.67 MB, free: 5.973 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.499/2.499, allocations: 437.1 MB / 0.7105 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001513, allocations: 68.25 kB / 1.018 GB, free: 9.848 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.909/0.9105, allocations: 151.6 MB / 1.166 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002243/0.9128, allocations: 0.7126 MB / 1.167 GB, free: 3.145 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001857/0.9147, allocations: 1.259 MB / 1.168 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.915e-05/0.9148, allocations: 4 kB / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.023e-05/0.9149, allocations: 7.875 kB / 1.168 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.915, allocations: 19.86 kB / 1.168 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001004/0.916, allocations: 317.3 kB / 1.168 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0004729/0.9165, allocations: 275.5 kB / 1.169 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.9166, allocations: 16.17 kB / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002032/0.9168, allocations: 95.86 kB / 1.169 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001847/0.917, allocations: 95.73 kB / 1.169 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.244e-05/0.9171, allocations: 24 kB / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.9172, allocations: 39.92 kB / 1.169 GB, free: 1 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.486e-05/0.9172, allocations: 19.92 kB / 1.169 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.9174, allocations: 87.8 kB / 1.169 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003285/0.9177, allocations: 219.1 kB / 1.169 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.9177, allocations: 0 / 1.169 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.823e-06/0.9177, allocations: 0 / 1.169 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.9177, allocations: 0 / 1.169 GB, free: 0.6836 MB / 0.8887 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.000703/0.9185, allocations: 496.2 kB / 1.17 GB, free: 136 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.9185, allocations: 8.922 kB / 1.17 GB, free: 128 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.165e-05/0.9186, allocations: 42.69 kB / 1.17 GB, free: 76 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.467e-05/0.9187, allocations: 16.89 kB / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.9188, allocations: 180.2 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.9189, allocations: 8.375 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.337e-05/0.9189, allocations: 16.38 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.9191, allocations: 61.98 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.9191, allocations: 0 / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.9191, allocations: 3.984 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.9191, allocations: 0 / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.5e-05/0.9192, allocations: 19.94 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.9197, allocations: 412.6 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 7.134e-05/0.9198, allocations: 34.56 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.073e-05/0.9199, allocations: 16.86 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.9199, allocations: 0 / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002351/0.9201, allocations: 107.4 kB / 1.171 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.383e-06/0.9201, allocations: 0 / 1.171 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0003256/0.9205, allocations: 141.5 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.9205, allocations: 59.41 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.9207, allocations: 136.2 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.9207, allocations: 34.08 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.9209, allocations: 96.12 kB / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.613e-05/0.9209, allocations: 19.86 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.921, allocations: 65.67 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.9212, allocations: 334.7 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.9214, allocations: 83.95 kB / 1.172 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/0.9216, allocations: 140.1 kB / 1.172 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.9219, allocations: 240.5 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.922, allocations: 0 / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006652/0.9226, allocations: 378.4 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 9.735e-05/0.9227, allocations: 105 kB / 1.172 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.9228, allocations: 4.188 kB / 1.172 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.9228, allocations: 4 kB / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.048e-05/0.9228, allocations: 4 kB / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.9228, allocations: 0 / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005162/0.9234, allocations: 83.8 kB / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.865e-05/0.9234, allocations: 27.98 kB / 1.173 GB, free: 13.03 MB / 0.9044 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.0001387/0.9236, allocations: 129.7 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.9236, allocations: 15.92 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.748e-05/0.9237, allocations: 8.375 kB / 1.173 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.9237, allocations: 0 / 1.173 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.9237, allocations: 4 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.9237, allocations: 4 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.9239, allocations: 189.6 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9239, allocations: 0 / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.244e-05/0.9239, allocations: 8 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.9239, allocations: 0 / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.9239, allocations: 4 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.9239, allocations: 0 / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.9239, allocations: 0 / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002119/0.9242, allocations: 140.9 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.287e-05/0.9242, allocations: 81.06 kB / 1.173 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.211e-05/0.9243, allocations: 8 kB / 1.173 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.489e-05/0.9243, allocations: 7.984 kB / 1.173 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.164e-05/0.9243, allocations: 4 kB / 1.173 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.9244, allocations: 11.98 kB / 1.173 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.644e-05/0.9244, allocations: 95.27 kB / 1.173 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9244, allocations: 0 / 1.173 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002858/0.9247, allocations: 51.98 kB / 1.173 GB, free: 12.18 MB / 0.9044 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.000588/0.9253, allocations: 0.6903 MB / 1.174 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005225/0.9259, allocations: 358.1 kB / 1.174 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.9259, allocations: 0 / 1.174 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 6.916e-05/0.926, allocations: 43.92 kB / 1.174 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.9262, allocations: 24.36 kB / 1.174 GB, free: 11.01 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.9288, allocations: 2.055 MB / 1.176 GB, free: 8.816 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.9291, allocations: 0.6963 MB / 1.177 GB, free: 8.094 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.225e-05/0.9292, allocations: 8.438 kB / 1.177 GB, free: 8.086 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.25e-05/0.9293, allocations: 27.42 kB / 1.177 GB, free: 8.059 MB / 0.9044 GB Notification: Performance of SimCode: time 5.01e-07/0.9293, allocations: 4.281 kB / 1.177 GB, free: 8.055 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04988/0.9792, allocations: 3.827 MB / 1.181 GB, free: 4.352 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.068/9.047, allocations: 7.922 kB / 1.181 GB, free: 4.344 MB / 0.9044 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/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