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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.351/2.351, allocations: 387.1 MB / 399.7 MB, free: 9.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 178.7 kB / 492.3 MB, free: 0.6367 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.654/1.654, allocations: 221.3 MB / 0.7871 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 87.89 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.549e-05/3.552e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3092, allocations: 142.4 MB / 1.213 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.111/1.42, allocations: 149.3 MB / 1.358 GB, free: 19.03 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/1.42, allocations: 67.52 kB / 1.358 GB, free: 19.03 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01324/1.433, allocations: 4.062 MB / 1.362 GB, free: 34.54 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.643e-06/1.433, allocations: 0 / 1.362 GB, free: 34.54 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.648e-06/1.433, allocations: 4 kB / 1.362 GB, free: 34.53 MB / 0.8386 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.0005592/1.434, allocations: 457.1 kB / 1.363 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/1.434, allocations: 11.59 kB / 1.363 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.101e-05/1.434, allocations: 36.08 kB / 1.363 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.091e-05/1.434, allocations: 15.5 kB / 1.363 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/1.434, allocations: 173.5 kB / 1.363 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/1.434, allocations: 7.594 kB / 1.363 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.13e-05/1.434, allocations: 13.34 kB / 1.363 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/1.435, allocations: 60.95 kB / 1.363 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/1.435, allocations: 4 kB / 1.363 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/1.435, allocations: 3.938 kB / 1.363 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/1.435, allocations: 1.219 kB / 1.363 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.408e-05/1.435, allocations: 18.41 kB / 1.363 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006265/1.435, allocations: 417.2 kB / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.922e-05/1.435, allocations: 35.12 kB / 1.364 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.315e-05/1.435, allocations: 20.42 kB / 1.364 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/1.436, allocations: 3.656 kB / 1.364 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/1.436, allocations: 95.12 kB / 1.364 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.923e-06/1.436, allocations: 0 / 1.364 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002708/1.436, allocations: 115.5 kB / 1.364 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/1.436, allocations: 60.48 kB / 1.364 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/1.436, allocations: 130.4 kB / 1.364 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.81e-05/1.436, allocations: 36.95 kB / 1.364 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.797e-05/1.436, allocations: 94.44 kB / 1.364 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.929e-05/1.436, allocations: 22.62 kB / 1.364 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.927e-05/1.436, allocations: 7.094 kB / 1.364 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001246/1.436, allocations: 322.9 kB / 1.364 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/1.437, allocations: 85.83 kB / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/1.437, allocations: 132.9 kB / 1.365 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/1.437, allocations: 167.3 kB / 1.365 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/1.437, allocations: 0 / 1.365 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006781/1.438, allocations: 373 kB / 1.365 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.889e-05/1.438, allocations: 99.59 kB / 1.365 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/1.438, allocations: 4 kB / 1.365 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.629e-05/1.438, allocations: 5.25 kB / 1.365 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.145e-05/1.438, allocations: 7.922 kB / 1.365 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/1.438, allocations: 1.219 kB / 1.365 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005503/1.439, allocations: 111.8 kB / 1.365 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.786e-05/1.439, allocations: 19.66 kB / 1.365 GB, free: 32.37 MB / 0.8386 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 () * 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.0001438/1.439, allocations: 122.7 kB / 1.366 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.978e-05/1.439, allocations: 7.781 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.659e-05/1.439, allocations: 13.14 kB / 1.366 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/1.439, allocations: 3.844 kB / 1.366 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/1.439, allocations: 7.953 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/1.439, allocations: 0 / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/1.439, allocations: 188.1 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/1.439, allocations: 3.938 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.593e-05/1.439, allocations: 6.453 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/1.439, allocations: 0 / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/1.439, allocations: 2.875 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/1.439, allocations: 3.875 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/1.439, allocations: 0 / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001972/1.439, allocations: 143.5 kB / 1.366 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.997e-05/1.44, allocations: 84.86 kB / 1.366 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/1.44, allocations: 5.844 kB / 1.366 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.329e-05/1.44, allocations: 0 / 1.366 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.681e-05/1.44, allocations: 9.016 kB / 1.366 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/1.44, allocations: 3.812 kB / 1.366 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.19e-05/1.44, allocations: 100.3 kB / 1.366 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.44, allocations: 3.938 kB / 1.366 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003538/1.44, allocations: 56.8 kB / 1.366 GB, free: 31.77 MB / 0.8386 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 () * 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.0005993/1.441, allocations: 0.6786 MB / 1.367 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005323/1.441, allocations: 354.5 kB / 1.367 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/1.441, allocations: 0 / 1.367 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.002e-05/1.441, allocations: 43.36 kB / 1.367 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/1.442, allocations: 18.97 kB / 1.367 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000558/1.442, allocations: 172.4 kB / 1.367 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/1.443, allocations: 0.7066 MB / 1.368 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.985e-05/1.443, allocations: 11.23 kB / 1.368 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.305e-05/1.443, allocations: 29.16 kB / 1.368 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of SimCode: time 9.62e-07/1.443, allocations: 0 / 1.368 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01711/1.46, allocations: 3.423 MB / 1.371 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/1.46, allocations: 166.7 kB / 1.372 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/3.139, allocations: 0 / 1.372 GB, free: 29.56 MB / 0.8386 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