Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 108.2 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 186.7 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 225.6 MB / 249.3 MB, free: 3.168 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.512/2.512, allocations: 476.7 MB / 0.7628 GB, free: 15.12 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 67.91 kB / 1.107 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8447/0.8465, allocations: 168.7 MB / 1.271 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001722/0.8482, allocations: 0.7054 MB / 1.272 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.8495, allocations: 1.271 MB / 1.273 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.313e-05/0.8495, allocations: 0.7812 kB / 1.273 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.814e-05/0.8496, allocations: 3.938 kB / 1.273 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.039e-05/0.8496, allocations: 21.44 kB / 1.273 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007003/0.8503, allocations: 327.3 kB / 1.274 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002756/0.8506, allocations: 254.9 kB / 1.274 GB, free: 6.074 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.137e-05/0.8507, allocations: 16 kB / 1.274 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.8508, allocations: 100.9 kB / 1.274 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.851, allocations: 95.77 kB / 1.274 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.351e-05/0.851, allocations: 26.09 kB / 1.274 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.471e-05/0.8511, allocations: 33.11 kB / 1.274 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.233e-05/0.8511, allocations: 19.94 kB / 1.274 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.86e-05/0.8512, allocations: 82.64 kB / 1.274 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002295/0.8514, allocations: 217.4 kB / 1.274 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.8514, allocations: 2.969 kB / 1.274 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.813e-06/0.8514, allocations: 0 / 1.274 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.8514, allocations: 0.9062 kB / 1.274 GB, free: 5.863 MB / 0.9981 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.0004568/0.8519, allocations: 496.6 kB / 1.275 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.8519, allocations: 13.5 kB / 1.275 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.134e-05/0.852, allocations: 38.11 kB / 1.275 GB, free: 5.332 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.716e-05/0.852, allocations: 16.48 kB / 1.275 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.948e-05/0.8521, allocations: 178.8 kB / 1.275 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.8521, allocations: 6.469 kB / 1.275 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.273e-05/0.8521, allocations: 14.8 kB / 1.275 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.8522, allocations: 63.7 kB / 1.275 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.8523, allocations: 0.8125 kB / 1.275 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.8523, allocations: 0.7812 kB / 1.275 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.8523, allocations: 0.75 kB / 1.275 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.924e-05/0.8523, allocations: 25.92 kB / 1.275 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004189/0.8527, allocations: 413.2 kB / 1.276 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.679e-05/0.8528, allocations: 33.56 kB / 1.276 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.355e-05/0.8528, allocations: 15.64 kB / 1.276 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.936e-06/0.8528, allocations: 1.062 kB / 1.276 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001614/0.853, allocations: 101.5 kB / 1.276 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.853, allocations: 4.625 kB / 1.276 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0002771/0.8533, allocations: 136.3 kB / 1.276 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.276e-05/0.8533, allocations: 58.3 kB / 1.276 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.904e-05/0.8534, allocations: 141.6 kB / 1.276 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.8534, allocations: 35.64 kB / 1.276 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.837e-05/0.8535, allocations: 97.27 kB / 1.276 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.8535, allocations: 20.94 kB / 1.276 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.8536, allocations: 71.59 kB / 1.276 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.185e-05/0.8536, allocations: 325 kB / 1.277 GB, free: 3.887 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.8538, allocations: 85.97 kB / 1.277 GB, free: 3.859 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.854, allocations: 132.9 kB / 1.277 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.8542, allocations: 236.4 kB / 1.277 GB, free: 3.57 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.8542, allocations: 1.125 kB / 1.277 GB, free: 3.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005453/0.8548, allocations: 387.4 kB / 1.277 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.509e-05/0.8548, allocations: 98.86 kB / 1.278 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.8548, allocations: 1.562 kB / 1.278 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.8548, allocations: 6.938 kB / 1.278 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.215e-05/0.8548, allocations: 9.188 kB / 1.278 GB, free: 3.246 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.8549, allocations: 6.141 kB / 1.278 GB, free: 3.242 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004673/0.8553, allocations: 87.55 kB / 1.278 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.8554, allocations: 24.55 kB / 1.278 GB, free: 3.219 MB / 0.9981 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 8.491e-05/0.8554, allocations: 128 kB / 1.278 GB, free: 3.098 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.701e-05/0.8555, allocations: 7.891 kB / 1.278 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.533e-05/0.8555, allocations: 12.47 kB / 1.278 GB, free: 3.082 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.8555, allocations: 1.5 kB / 1.278 GB, free: 3.082 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.8555, allocations: 0 / 1.278 GB, free: 3.082 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-06/0.8555, allocations: 5.094 kB / 1.278 GB, free: 3.078 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.991e-05/0.8556, allocations: 191.2 kB / 1.278 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.8556, allocations: 0 / 1.278 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.321e-05/0.8556, allocations: 11.03 kB / 1.278 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.8556, allocations: 0.7812 kB / 1.278 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.8556, allocations: 2.984 kB / 1.278 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.8556, allocations: 0.5312 kB / 1.278 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.8556, allocations: 1 kB / 1.278 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001608/0.8558, allocations: 147.1 kB / 1.278 GB, free: 2.762 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.17e-05/0.8558, allocations: 83.81 kB / 1.278 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.8558, allocations: 6.031 kB / 1.278 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.203e-05/0.8558, allocations: 0.9688 kB / 1.278 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.562e-05/0.8559, allocations: 8.125 kB / 1.278 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.8559, allocations: 8.797 kB / 1.278 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.872e-05/0.8559, allocations: 96.84 kB / 1.278 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.8559, allocations: 0.9375 kB / 1.278 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002583/0.8562, allocations: 48.8 kB / 1.278 GB, free: 2.57 MB / 0.9981 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.000361/0.8566, allocations: 0.6825 MB / 1.279 GB, free: 1.941 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003863/0.8569, allocations: 325.1 kB / 1.279 GB, free: 1.699 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.8569, allocations: 0 / 1.279 GB, free: 1.699 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.741e-05/0.857, allocations: 34.28 kB / 1.279 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.8572, allocations: 28.03 kB / 1.279 GB, free: 1.68 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.8595, allocations: 2.065 MB / 1.281 GB, free: 16.07 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.8598, allocations: 0.6971 MB / 1.282 GB, free: 15.37 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.554e-05/0.8598, allocations: 14.48 kB / 1.282 GB, free: 15.36 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.028e-05/0.8598, allocations: 26.69 kB / 1.282 GB, free: 15.34 MB / 1.014 GB Notification: Performance of SimCode: time 3.6e-07/0.8598, allocations: 3.938 kB / 1.282 GB, free: 15.34 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.886, allocations: 3.834 MB / 1.286 GB, free: 14.78 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.977/7.863, allocations: 3.578 kB / 1.286 GB, free: 14.78 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable logicalSwitch.u1 in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u1 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u2 in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u2 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u3 in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u3 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.y in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.y from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 13.270230182999512]