Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.001008/0.001008, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009823/0.0009827, allocations: 177.3 kB / 15.94 MB, free: 228 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.408/1.408, allocations: 223.2 MB / 239.9 MB, free: 5.332 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.446/2.446, allocations: 390.3 MB / 0.6653 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003469/0.0003469, allocations: 12 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7943/0.7947, allocations: 142.3 MB / 0.9536 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.0008568/0.7956, allocations: 0.5022 MB / 0.9541 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.7969, allocations: 1.099 MB / 0.9552 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.319e-05/0.7969, allocations: 0 / 0.9552 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.544e-05/0.7969, allocations: 5.156 kB / 0.9552 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.586e-05/0.797, allocations: 10.61 kB / 0.9552 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004017/0.7974, allocations: 116 kB / 0.9553 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.868e-05/0.7975, allocations: 72.73 kB / 0.9554 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.7977, allocations: 11.25 kB / 0.9554 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.626e-05/0.7977, allocations: 43.55 kB / 0.9554 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.007e-05/0.7978, allocations: 42.88 kB / 0.9555 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.7979, allocations: 6.25 kB / 0.9555 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.7979, allocations: 20.36 kB / 0.9555 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.618e-05/0.7979, allocations: 1.469 kB / 0.9555 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.968e-05/0.798, allocations: 41.05 kB / 0.9555 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.7981, allocations: 82.58 kB / 0.9556 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.7981, allocations: 0.9375 kB / 0.9556 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7981, allocations: 0 / 0.9556 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.7981, allocations: 0 / 0.9556 GB, free: 6.531 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.00052/0.7987, allocations: 426.9 kB / 0.956 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.7987, allocations: 13.75 kB / 0.956 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.458e-05/0.7988, allocations: 31.88 kB / 0.9561 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.389e-05/0.7988, allocations: 16.75 kB / 0.9561 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.82e-05/0.7989, allocations: 167.7 kB / 0.9562 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.7989, allocations: 11.91 kB / 0.9562 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.7989, allocations: 4.688 kB / 0.9562 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002505/0.7992, allocations: 92.89 kB / 0.9563 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.7992, allocations: 0 / 0.9563 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.7992, allocations: 0 / 0.9563 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.7992, allocations: 5.328 kB / 0.9563 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003019/0.7995, allocations: 93.23 kB / 0.9564 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003477/0.7999, allocations: 330.3 kB / 0.9567 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.8001, allocations: 66.39 kB / 0.9568 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.8001, allocations: 0 / 0.9568 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.8004, allocations: 113.9 kB / 0.9569 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.673e-06/0.8004, allocations: 0 / 0.9569 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005757/0.801, allocations: 199.5 kB / 0.9571 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.47e-05/0.801, allocations: 52.47 kB / 0.9572 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.86e-05/0.8011, allocations: 125.9 kB / 0.9573 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.8011, allocations: 31.86 kB / 0.9573 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.771e-05/0.8011, allocations: 91.41 kB / 0.9574 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.8012, allocations: 15.03 kB / 0.9574 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.8012, allocations: 1.062 kB / 0.9574 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.771e-05/0.8012, allocations: 317.2 kB / 0.9577 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.8015, allocations: 74.22 kB / 0.9578 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.8017, allocations: 93.77 kB / 0.9579 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.8019, allocations: 91.41 kB / 0.958 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.8019, allocations: 4.969 kB / 0.958 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005067/0.8024, allocations: 234.9 kB / 0.9582 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.8025, allocations: 45.23 kB / 0.9582 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.8025, allocations: 0 / 0.9582 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.8025, allocations: 1.812 kB / 0.9582 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.8026, allocations: 24.27 kB / 0.9583 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.8026, allocations: 4.062 kB / 0.9583 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.8029, allocations: 60.81 kB / 0.9583 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.8029, allocations: 9.281 kB / 0.9583 GB, free: 4.168 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 7.138e-05/0.803, allocations: 128.1 kB / 0.9584 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.415e-05/0.803, allocations: 7.109 kB / 0.9585 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.764e-05/0.803, allocations: 13.8 kB / 0.9585 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.8031, allocations: 1.406 kB / 0.9585 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.8031, allocations: 0 / 0.9585 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.8031, allocations: 0 / 0.9585 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.93e-05/0.8032, allocations: 178.1 kB / 0.9586 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.8032, allocations: 1.156 kB / 0.9586 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.8033, allocations: 28.03 kB / 0.9587 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.8033, allocations: 0 / 0.9587 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.8033, allocations: 5.188 kB / 0.9587 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.8033, allocations: 8.203 kB / 0.9587 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.8033, allocations: 0 / 0.9587 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003721/0.8037, allocations: 172.3 kB / 0.9588 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.008e-05/0.8037, allocations: 82.92 kB / 0.9589 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.8038, allocations: 1.844 kB / 0.9589 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.352e-05/0.8038, allocations: 22.8 kB / 0.9589 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.243e-05/0.8039, allocations: 11.53 kB / 0.959 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.8039, allocations: 1.812 kB / 0.959 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.386e-05/0.8039, allocations: 93.86 kB / 0.959 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8039, allocations: 0 / 0.959 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000216/0.8042, allocations: 24.62 kB / 0.9591 GB, free: 3.469 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005985/0.8048, allocations: 0.7155 MB / 0.9598 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000458/0.8052, allocations: 211.4 kB / 0.96 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.8053, allocations: 0 / 0.96 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.8054, allocations: 57.22 kB / 0.96 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.8056, allocations: 14.81 kB / 0.96 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005175/0.8061, allocations: 0.6817 MB / 0.9607 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.8063, allocations: 0.6909 MB / 0.9614 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.615e-05/0.8063, allocations: 16.11 kB / 0.9614 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.081e-05/0.8064, allocations: 22.42 kB / 0.9614 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8064, allocations: 0 / 0.9614 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01207/0.8184, allocations: 2.255 MB / 0.9636 GB, free: 172 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.8187, allocations: 187.2 kB / 0.9638 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/2.474, allocations: 3.938 kB / 0.9638 GB, free: 15.92 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat does not exist to compare? outputFormat=mat