Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_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.001058/0.001058, allocations: 108 kB / 15.6 MB, free: 132 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.001089/0.001089, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.663/2.663, allocations: 469.4 MB / 0.742 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 62.33 kB / 0.9083 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3134/0.3147, allocations: 159.1 MB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002397/0.3171, allocations: 0.6899 MB / 1.064 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001703/0.3189, allocations: 1.265 MB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.742e-05/0.319, allocations: 4 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.401e-05/0.319, allocations: 3.938 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.918e-05/0.3191, allocations: 15.84 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008843/0.32, allocations: 307.7 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003484/0.3204, allocations: 271.6 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.3205, allocations: 32.14 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.3207, allocations: 99.81 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.3208, allocations: 71.83 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.566e-05/0.3209, allocations: 23.94 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.321, allocations: 39.98 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.494e-05/0.321, allocations: 11.94 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.3212, allocations: 91.72 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.3215, allocations: 207.8 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.3215, allocations: 11.92 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3215, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.173e-06/0.3215, allocations: 4 kB / 1.067 GB, free: 11.32 MB / 0.8262 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.0006283/0.3221, allocations: 496.3 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.3222, allocations: 11.97 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.75e-05/0.3223, allocations: 30.75 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.143e-05/0.3223, allocations: 16.84 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.3225, allocations: 173.4 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/0.3225, allocations: 16.38 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.3225, allocations: 12.38 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.3227, allocations: 57.98 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.3227, allocations: 4 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.3227, allocations: 4 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.3227, allocations: 3.984 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.505e-05/0.3228, allocations: 19.94 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005415/0.3233, allocations: 416.5 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.999e-05/0.3234, allocations: 30.58 kB / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.407e-05/0.3234, allocations: 24.94 kB / 1.068 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.3235, allocations: 0 / 1.068 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001964/0.3237, allocations: 107.2 kB / 1.068 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.663e-06/0.3237, allocations: 0 / 1.068 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0003004/0.324, allocations: 137.5 kB / 1.068 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.324, allocations: 55.41 kB / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.3241, allocations: 131.8 kB / 1.068 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.3242, allocations: 37.7 kB / 1.068 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.797e-05/0.3243, allocations: 100 kB / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.3243, allocations: 15.88 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.3244, allocations: 73.61 kB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3245, allocations: 322.8 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.3247, allocations: 87.95 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.3249, allocations: 143.8 kB / 1.069 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002647/0.3252, allocations: 231 kB / 1.069 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.3252, allocations: 0 / 1.069 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005953/0.3258, allocations: 385.9 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.989e-05/0.3259, allocations: 101 kB / 1.07 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.3259, allocations: 4 kB / 1.07 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.3259, allocations: 7.984 kB / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.025e-05/0.326, allocations: 0 / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.994e-06/0.326, allocations: 4.188 kB / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005194/0.3265, allocations: 83.84 kB / 1.07 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.3266, allocations: 19.97 kB / 1.07 GB, free: 7.68 MB / 0.8262 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.0001189/0.3267, allocations: 135.5 kB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.821e-05/0.3267, allocations: 11.91 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.003e-05/0.3267, allocations: 12.38 kB / 1.07 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3267, allocations: 0 / 1.07 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3268, allocations: 0 / 1.07 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3268, allocations: 3.984 kB / 1.07 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.3269, allocations: 193.5 kB / 1.07 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3269, allocations: 0 / 1.07 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.263e-05/0.3269, allocations: 4 kB / 1.07 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.3269, allocations: 0 / 1.07 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/0.327, allocations: 3.984 kB / 1.07 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.327, allocations: 8 kB / 1.07 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.327, allocations: 4 kB / 1.07 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001708/0.3272, allocations: 136.9 kB / 1.07 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.872e-05/0.3272, allocations: 89.09 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3272, allocations: 7.922 kB / 1.071 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.411e-05/0.3273, allocations: 4 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.396e-05/0.3273, allocations: 11.98 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.3273, allocations: 0 / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.438e-05/0.3274, allocations: 104.1 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3274, allocations: 3.938 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002581/0.3276, allocations: 43.91 kB / 1.071 GB, free: 6.824 MB / 0.8262 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.0005316/0.3282, allocations: 0.6792 MB / 1.071 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004582/0.3286, allocations: 370 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3287, allocations: 0 / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.135e-05/0.3287, allocations: 35.98 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.329, allocations: 19.97 kB / 1.072 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.3314, allocations: 2.055 MB / 1.074 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.3317, allocations: 0.6924 MB / 1.074 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.021e-05/0.3318, allocations: 8.422 kB / 1.074 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.31e-05/0.3318, allocations: 31.44 kB / 1.074 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3318, allocations: 0 / 1.074 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.3541, allocations: 3.794 MB / 1.078 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.147/7.501, allocations: 7.297 kB / 1.078 GB, free: 15.02 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches