Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.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.OnOffController,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",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.348/2.348, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001108/0.001108, allocations: 176.8 kB / 487.4 MB, free: 5.062 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.602/1.602, allocations: 221.5 MB / 0.7824 GB, free: 0.9414 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009265/0.0009265, allocations: 95.83 kB / 0.9219 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.369e-05/2.371e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3429, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.13/1.473, allocations: 148.3 MB / 1.351 GB, free: 18.46 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/1.473, allocations: 68.62 kB / 1.351 GB, free: 18.46 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003442/1.477, allocations: 0.9478 MB / 1.352 GB, free: 34.12 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.236e-06/1.477, allocations: 2.031 kB / 1.352 GB, free: 34.12 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.023e-06/1.477, allocations: 0 / 1.352 GB, free: 34.12 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.0004788/1.477, allocations: 370.5 kB / 1.352 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/1.477, allocations: 10.5 kB / 1.352 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.763e-05/1.478, allocations: 9.156 kB / 1.352 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/1.478, allocations: 174.3 kB / 1.352 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/1.478, allocations: 2.109 kB / 1.352 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.199e-05/1.478, allocations: 2.625 kB / 1.352 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.692e-05/1.478, allocations: 19.19 kB / 1.352 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.994e-05/1.478, allocations: 43.08 kB / 1.352 GB, free: 33.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/1.478, allocations: 0 / 1.352 GB, free: 33.53 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.491e-05/1.478, allocations: 4.656 kB / 1.352 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/1.478, allocations: 1.312 kB / 1.352 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004779/1.478, allocations: 281.9 kB / 1.353 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/1.479, allocations: 43.11 kB / 1.353 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.726e-05/1.479, allocations: 13.42 kB / 1.353 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/1.479, allocations: 3.875 kB / 1.353 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.416e-05/1.479, allocations: 31.27 kB / 1.353 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.633e-06/1.479, allocations: 0 / 1.353 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.000138/1.479, allocations: 47.75 kB / 1.353 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.141e-05/1.479, allocations: 63.22 kB / 1.353 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.449e-05/1.479, allocations: 94.64 kB / 1.353 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/1.479, allocations: 29.2 kB / 1.353 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.382e-05/1.479, allocations: 88.84 kB / 1.353 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/1.479, allocations: 8.406 kB / 1.353 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.438e-06/1.479, allocations: 0 / 1.353 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001078/1.479, allocations: 320.6 kB / 1.353 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.097e-05/1.479, allocations: 11.41 kB / 1.353 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.751e-05/1.479, allocations: 7.281 kB / 1.353 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.088e-05/1.479, allocations: 10.67 kB / 1.354 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/1.479, allocations: 0 / 1.354 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.177e-05/1.479, allocations: 51.11 kB / 1.354 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/1.479, allocations: 3.875 kB / 1.354 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/1.479, allocations: 3.938 kB / 1.354 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/1.479, allocations: 0.6094 kB / 1.354 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.738e-05/1.479, allocations: 14.08 kB / 1.354 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/1.479, allocations: 0.5625 kB / 1.354 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/1.48, allocations: 22.8 kB / 1.354 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/1.48, allocations: 3.531 kB / 1.354 GB, free: 32.53 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.onOffController.y,onOffController.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.168e-05/1.48, allocations: 105.6 kB / 1.354 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.044e-05/1.48, allocations: 52.02 kB / 1.354 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.114e-05/1.48, allocations: 3.594 kB / 1.354 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/1.48, allocations: 63.09 kB / 1.354 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/1.48, allocations: 5.422 kB / 1.354 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/1.48, allocations: 0 / 1.354 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/1.48, allocations: 4.469 kB / 1.354 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/1.48, allocations: 141.1 kB / 1.354 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/1.48, allocations: 0 / 1.354 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.755e-05/1.48, allocations: 13.73 kB / 1.354 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/1.48, allocations: 0.7969 kB / 1.354 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/1.48, allocations: 3.688 kB / 1.354 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/1.48, allocations: 4.734 kB / 1.354 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.48, allocations: 0.75 kB / 1.354 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001043/1.48, allocations: 150.8 kB / 1.354 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.053e-05/1.48, allocations: 77.77 kB / 1.354 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/1.48, allocations: 6.969 kB / 1.354 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/1.481, allocations: 25.42 kB / 1.354 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.415e-05/1.481, allocations: 12.12 kB / 1.354 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/1.481, allocations: 0 / 1.354 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.921e-05/1.481, allocations: 84.14 kB / 1.354 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.481, allocations: 0 / 1.354 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002175/1.481, allocations: 7.625 kB / 1.354 GB, free: 31.85 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: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0003585/1.481, allocations: 0.6839 MB / 1.355 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.901e-05/1.481, allocations: 24.09 kB / 1.355 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/1.481, allocations: 3.938 kB / 1.355 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.56e-05/1.481, allocations: 11.25 kB / 1.355 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/1.482, allocations: 13.61 kB / 1.355 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000319/1.482, allocations: 95.59 kB / 1.355 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/1.482, allocations: 0.6826 MB / 1.356 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.216e-05/1.482, allocations: 8.625 kB / 1.356 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.172e-05/1.482, allocations: 12.03 kB / 1.356 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/1.482, allocations: 0 / 1.356 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/1.505, allocations: 1.042 MB / 1.357 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/1.505, allocations: 158.8 kB / 1.357 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.56/3.066, allocations: 0 / 1.357 GB, free: 30.11 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat does not exist to compare? outputFormat=mat