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.005936/0.005936, allocations: 98.77 kB / 15.73 MB, free: 6.031 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.00125/0.00125, allocations: 196.5 kB / 16.67 MB, free: 5.953 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.269/2.269, allocations: 390.3 MB / 0.6648 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 63.91 kB / 0.9504 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9048/0.9063, allocations: 140.4 MB / 1.087 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001919/0.9082, allocations: 0.7104 MB / 1.088 GB, free: 4.805 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001521/0.9098, allocations: 1.265 MB / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.351e-05/0.9098, allocations: 1.312 kB / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.46e-05/0.9099, allocations: 4.547 kB / 1.089 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.274e-05/0.91, allocations: 22.25 kB / 1.089 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008222/0.9108, allocations: 313.4 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003358/0.9112, allocations: 276 kB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.9113, allocations: 16.83 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.9114, allocations: 96.98 kB / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.9116, allocations: 99.73 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.667e-05/0.9116, allocations: 22.88 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.267e-05/0.9117, allocations: 36.95 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.711e-05/0.9118, allocations: 15.36 kB / 1.09 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.9119, allocations: 86.47 kB / 1.09 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003123/0.9122, allocations: 217.3 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.9122, allocations: 0 / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.543e-06/0.9122, allocations: 0 / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.9122, allocations: 1.125 kB / 1.091 GB, free: 3.383 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.0005226/0.9128, allocations: 498.6 kB / 1.091 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.9128, allocations: 9.625 kB / 1.091 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.08e-05/0.9129, allocations: 41.81 kB / 1.091 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.184e-05/0.9129, allocations: 15.2 kB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.207e-05/0.913, allocations: 174 kB / 1.091 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.9131, allocations: 7.625 kB / 1.091 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/0.9131, allocations: 19.19 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000126/0.9132, allocations: 59.48 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.9133, allocations: 3.938 kB / 1.091 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.9133, allocations: 5.422 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.9133, allocations: 1.438 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.474e-05/0.9133, allocations: 17.06 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000569/0.9139, allocations: 420.8 kB / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.394e-05/0.914, allocations: 30.58 kB / 1.092 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.604e-05/0.914, allocations: 23.14 kB / 1.092 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-06/0.914, allocations: 0.6875 kB / 1.092 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002171/0.9143, allocations: 105 kB / 1.092 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.512e-06/0.9143, allocations: 0 / 1.092 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003152/0.9146, allocations: 141.3 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.9146, allocations: 54.38 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.947e-05/0.9147, allocations: 140.2 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.9148, allocations: 35.5 kB / 1.092 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.641e-05/0.9148, allocations: 96.66 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.9149, allocations: 17.61 kB / 1.092 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.915, allocations: 71.69 kB / 1.092 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.055e-05/0.9151, allocations: 327.3 kB / 1.093 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.9153, allocations: 87.02 kB / 1.093 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.9155, allocations: 136.8 kB / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/0.9158, allocations: 237.1 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.9158, allocations: 0.6875 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006128/0.9164, allocations: 383.7 kB / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.904e-05/0.9165, allocations: 102.2 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.9165, allocations: 1.891 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.9165, allocations: 2.438 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.466e-05/0.9165, allocations: 4.891 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.9165, allocations: 2.859 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005104/0.917, allocations: 83.08 kB / 1.094 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/0.9171, allocations: 21.75 kB / 1.094 GB, free: 0.7539 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 0.0001053/0.9172, allocations: 135 kB / 1.094 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.875e-05/0.9172, allocations: 13.03 kB / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.975e-05/0.9173, allocations: 10.81 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.9173, allocations: 1.281 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.9173, allocations: 0.7812 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.9173, allocations: 0.9375 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.9174, allocations: 192.2 kB / 1.094 GB, free: 416 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.9174, allocations: 4 kB / 1.094 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.179e-05/0.9174, allocations: 3.344 kB / 1.094 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.9174, allocations: 0.875 kB / 1.094 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.9175, allocations: 10.55 kB / 1.094 GB, free: 404 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.9175, allocations: 4.734 kB / 1.094 GB, free: 400 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.9175, allocations: 0.5312 kB / 1.094 GB, free: 400 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001937/0.9177, allocations: 138.4 kB / 1.094 GB, free: 304 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.223e-05/0.9177, allocations: 91.8 kB / 1.094 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.9177, allocations: 3.266 kB / 1.094 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.439e-05/0.9178, allocations: 5.656 kB / 1.094 GB, free: 192 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.307e-05/0.9178, allocations: 6.203 kB / 1.094 GB, free: 192 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.9178, allocations: 9.531 kB / 1.094 GB, free: 188 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.41e-05/0.9179, allocations: 95.36 kB / 1.094 GB, free: 108 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9179, allocations: 0 / 1.094 GB, free: 108 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002705/0.9181, allocations: 46.72 kB / 1.095 GB, free: 100 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.0005085/0.9187, allocations: 0.6872 MB / 1.095 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005107/0.9192, allocations: 362.6 kB / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.9192, allocations: 0 / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 7.032e-05/0.9193, allocations: 35.22 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.9195, allocations: 25.45 kB / 1.096 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.9222, allocations: 2.057 MB / 1.098 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.9225, allocations: 0.6936 MB / 1.098 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.625e-05/0.9225, allocations: 11.73 kB / 1.098 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.561e-05/0.9226, allocations: 27.2 kB / 1.098 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of SimCode: time 4.71e-07/0.9226, allocations: 0 / 1.098 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02438/0.947, allocations: 3.825 MB / 1.102 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/8.639, allocations: 10.02 kB / 1.102 GB, free: 12.28 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