Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Logical.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_9_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.007/0.007, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001333/0.001333, allocations: 193.8 kB / 16.67 MB, free: 5.93 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.385/2.385, allocations: 390.3 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 67.91 kB / 0.9504 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7937/0.7949, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001633/0.7966, allocations: 0.708 MB / 1.088 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001347/0.7979, allocations: 1.269 MB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.49e-05/0.798, allocations: 1.125 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.505e-05/0.7981, allocations: 4.688 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.072e-05/0.7982, allocations: 20.91 kB / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008265/0.799, allocations: 309.3 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002985/0.7993, allocations: 271.3 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.32e-05/0.7994, allocations: 13.75 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.7995, allocations: 103.8 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.7997, allocations: 96.03 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.303e-05/0.7998, allocations: 22.94 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.68e-05/0.7999, allocations: 32.34 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.421e-05/0.7999, allocations: 19.91 kB / 1.09 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.8, allocations: 86.61 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000264/0.8003, allocations: 218.9 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.8003, allocations: 2.25 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.773e-06/0.8003, allocations: 0 / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.278e-06/0.8003, allocations: 0 / 1.091 GB, free: 3.406 MB / 0.8575 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.000463/0.8008, allocations: 490.4 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.8008, allocations: 9.5 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.456e-05/0.8008, allocations: 37.84 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.475e-05/0.8009, allocations: 15.92 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.931e-05/0.801, allocations: 183.8 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.801, allocations: 8.297 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.235e-05/0.8011, allocations: 13.83 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.8012, allocations: 60.03 kB / 1.091 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.8012, allocations: 0.75 kB / 1.091 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.8012, allocations: 5.406 kB / 1.091 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.8013, allocations: 5.375 kB / 1.091 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.585e-05/0.8013, allocations: 21.42 kB / 1.091 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005419/0.8019, allocations: 420.9 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.299e-05/0.8019, allocations: 33.19 kB / 1.092 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.657e-05/0.802, allocations: 23.81 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.802, allocations: 0 / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001883/0.8022, allocations: 104.9 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.8022, allocations: 0.8438 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0002957/0.8025, allocations: 140.9 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.279e-05/0.8025, allocations: 53.98 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.603e-05/0.8026, allocations: 133.4 kB / 1.092 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.8027, allocations: 35.91 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.421e-05/0.8027, allocations: 97.83 kB / 1.092 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.8028, allocations: 20.3 kB / 1.092 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.8029, allocations: 70.75 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.215e-05/0.8029, allocations: 325.2 kB / 1.093 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.8031, allocations: 90.62 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.8033, allocations: 132.2 kB / 1.093 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.8036, allocations: 240.4 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.8036, allocations: 0.7188 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006008/0.8042, allocations: 376 kB / 1.094 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.825e-05/0.8043, allocations: 97.58 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.8043, allocations: 6.344 kB / 1.094 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.8043, allocations: 2.188 kB / 1.094 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.085e-05/0.8043, allocations: 8.531 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.8043, allocations: 2.469 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005025/0.8048, allocations: 80.25 kB / 1.094 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-05/0.8049, allocations: 16.81 kB / 1.094 GB, free: 0.7891 MB / 0.8575 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 9.707e-05/0.805, allocations: 140.6 kB / 1.094 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.787e-05/0.805, allocations: 9.25 kB / 1.094 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.557e-05/0.805, allocations: 10.89 kB / 1.094 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.805, allocations: 1.281 kB / 1.094 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.8051, allocations: 0.7812 kB / 1.094 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.8051, allocations: 1.125 kB / 1.094 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001286/0.8052, allocations: 192.2 kB / 1.094 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.8052, allocations: 4.562 kB / 1.094 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.188e-05/0.8052, allocations: 6.141 kB / 1.094 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.8052, allocations: 0.5625 kB / 1.094 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.8052, allocations: 3.188 kB / 1.094 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.8053, allocations: 1.094 kB / 1.094 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8053, allocations: 3.938 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001702/0.8054, allocations: 142 kB / 1.094 GB, free: 336 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.28e-05/0.8055, allocations: 88.89 kB / 1.094 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.8055, allocations: 2.5 kB / 1.094 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.472e-05/0.8055, allocations: 9.922 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.464e-05/0.8056, allocations: 6.422 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.8056, allocations: 5.312 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.572e-05/0.8056, allocations: 101.4 kB / 1.094 GB, free: 140 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8056, allocations: 0 / 1.094 GB, free: 140 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002818/0.8059, allocations: 47.7 kB / 1.095 GB, free: 132 kB / 0.8575 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.0004852/0.8064, allocations: 0.681 MB / 1.095 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004968/0.8069, allocations: 366.6 kB / 1.096 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.8069, allocations: 0 / 1.096 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 7.04e-05/0.807, allocations: 39.39 kB / 1.096 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.8073, allocations: 36.22 kB / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.8099, allocations: 2.049 MB / 1.098 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002534/0.8101, allocations: 0.6928 MB / 1.098 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.008e-05/0.8102, allocations: 7.734 kB / 1.098 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.54e-05/0.8102, allocations: 27.41 kB / 1.098 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of SimCode: time 2.8e-07/0.8102, allocations: 4 kB / 1.098 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02102/0.8313, allocations: 3.823 MB / 1.102 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.861/8.692, allocations: 6.531 kB / 1.102 GB, free: 12.31 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches