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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001003/0.001003, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001195/0.001196, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 223.2 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.479/2.479, allocations: 390.4 MB / 0.6655 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004743/0.0004747, allocations: 12 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.766/0.7665, allocations: 142.3 MB / 0.9539 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0008678/0.7674, allocations: 424.8 kB / 0.9543 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001454/0.7689, allocations: 1.244 MB / 0.9555 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.318e-05/0.769, allocations: 0 / 0.9555 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.812e-05/0.769, allocations: 0 / 0.9555 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.809e-05/0.7691, allocations: 14.52 kB / 0.9555 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008098/0.7699, allocations: 276.8 kB / 0.9558 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002062/0.7701, allocations: 202.8 kB / 0.956 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.714e-05/0.7702, allocations: 15.3 kB / 0.956 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.7704, allocations: 86.61 kB / 0.9561 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.7705, allocations: 70.77 kB / 0.9561 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.161e-05/0.7706, allocations: 12.19 kB / 0.9561 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.444e-05/0.7706, allocations: 22.48 kB / 0.9562 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.152e-05/0.7707, allocations: 16.84 kB / 0.9562 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.505e-05/0.7707, allocations: 45.67 kB / 0.9562 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.7709, allocations: 154 kB / 0.9564 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.7709, allocations: 4 kB / 0.9564 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.803e-06/0.7709, allocations: 0 / 0.9564 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.488e-06/0.7709, allocations: 0 / 0.9564 GB, free: 6.195 MB / 0.7169 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.0004203/0.7714, allocations: 456.3 kB / 0.9568 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.7714, allocations: 11.12 kB / 0.9568 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.051e-05/0.7715, allocations: 30.56 kB / 0.9568 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.49e-05/0.7715, allocations: 22.28 kB / 0.9569 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.453e-05/0.7716, allocations: 170.9 kB / 0.957 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.7717, allocations: 10.25 kB / 0.957 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.81e-05/0.7717, allocations: 16.75 kB / 0.9571 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001231/0.7718, allocations: 54.98 kB / 0.9571 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.7719, allocations: 0.9688 kB / 0.9571 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.7719, allocations: 3.984 kB / 0.9571 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.7719, allocations: 5.031 kB / 0.9571 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.879e-05/0.7719, allocations: 23.36 kB / 0.9571 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004998/0.7724, allocations: 415.5 kB / 0.9575 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.7e-05/0.7725, allocations: 43.55 kB / 0.9576 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.165e-05/0.7726, allocations: 16.89 kB / 0.9576 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.7726, allocations: 3.938 kB / 0.9576 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.7727, allocations: 109.2 kB / 0.9577 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.7728, allocations: 0 / 0.9577 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.000287/0.7731, allocations: 137.2 kB / 0.9578 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.777e-05/0.7731, allocations: 57.72 kB / 0.9579 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.966e-05/0.7732, allocations: 133.7 kB / 0.958 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.7732, allocations: 36.7 kB / 0.958 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.198e-05/0.7733, allocations: 98.16 kB / 0.9581 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.7733, allocations: 20.25 kB / 0.9582 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.57e-05/0.7733, allocations: 4.25 kB / 0.9582 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.651e-05/0.7734, allocations: 322 kB / 0.9585 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.7736, allocations: 84.58 kB / 0.9586 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.7738, allocations: 143.2 kB / 0.9587 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.774, allocations: 177.1 kB / 0.9589 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.774, allocations: 0 / 0.9589 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005651/0.7746, allocations: 377.4 kB / 0.9592 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.603e-05/0.7746, allocations: 101.7 kB / 0.9593 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.7747, allocations: 1.844 kB / 0.9593 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.7747, allocations: 3.562 kB / 0.9593 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.712e-05/0.7747, allocations: 5.75 kB / 0.9593 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.076e-06/0.7747, allocations: 7.578 kB / 0.9593 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005375/0.7753, allocations: 118.8 kB / 0.9594 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-05/0.7753, allocations: 17.73 kB / 0.9595 GB, free: 3.402 MB / 0.7169 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,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.7754, allocations: 130.2 kB / 0.9596 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.935e-05/0.7755, allocations: 11.98 kB / 0.9596 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.966e-05/0.7755, allocations: 9.75 kB / 0.9596 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.7755, allocations: 9.312 kB / 0.9596 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.7755, allocations: 0 / 0.9596 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.7755, allocations: 384 / 0.9596 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.7757, allocations: 186.1 kB / 0.9598 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.7757, allocations: 0 / 0.9598 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.208e-05/0.7757, allocations: 2.75 kB / 0.9598 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.7757, allocations: 3.938 kB / 0.9598 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.7757, allocations: 10.7 kB / 0.9598 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.7757, allocations: 0 / 0.9598 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.7757, allocations: 0 / 0.9598 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.7759, allocations: 139.8 kB / 0.9599 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.199e-05/0.776, allocations: 83.77 kB / 0.96 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.776, allocations: 1.375 kB / 0.96 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.725e-05/0.776, allocations: 11.94 kB / 0.96 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.7761, allocations: 4.125 kB / 0.96 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.7761, allocations: 12.11 kB / 0.9601 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.549e-05/0.7761, allocations: 100.1 kB / 0.9601 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7761, allocations: 0 / 0.9601 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000301/0.7764, allocations: 47.88 kB / 0.9602 GB, free: 2.711 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004727/0.7769, allocations: 0.6743 MB / 0.9609 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000517/0.7775, allocations: 362.2 kB / 0.9612 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.7775, allocations: 4.312 kB / 0.9612 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.494e-05/0.7776, allocations: 47.2 kB / 0.9612 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.7779, allocations: 22.53 kB / 0.9613 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.7794, allocations: 0.9107 MB / 0.9622 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001445/0.7795, allocations: 0.696 MB / 0.9628 GB, free: 364 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.313e-05/0.7796, allocations: 7.312 kB / 0.9628 GB, free: 364 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.312e-05/0.7796, allocations: 28.2 kB / 0.9629 GB, free: 340 kB / 0.7169 GB Notification: Performance of SimCode: time 3.91e-07/0.7796, allocations: 0 / 0.9629 GB, free: 340 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.7971, allocations: 3.444 MB / 0.9662 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002596/0.7974, allocations: 192.8 kB / 0.9664 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/2.572, allocations: 0 / 0.9664 GB, free: 14.41 MB / 0.7325 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat does not exist to compare? outputFormat=mat