Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.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.Continuous.Validation.GreaterThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold",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.1 MB / 399.7 MB, free: 9.484 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.0009833/0.0009832, allocations: 176.2 kB / 492.3 MB, free: 0.6055 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.663/1.663, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.00104/0.00104, allocations: 99.83 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.422e-05/4.454e-05, allocations: 8 kB / 1.074 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3074, allocations: 142.3 MB / 1.213 GB, free: 38.38 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.055/1.362, allocations: 153.3 MB / 1.362 GB, free: 19.04 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/1.362, allocations: 82.52 kB / 1.362 GB, free: 19.04 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01858/1.381, allocations: 7.294 MB / 1.369 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.473e-06/1.381, allocations: 0 / 1.369 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.168e-05/1.381, allocations: 3.844 kB / 1.369 GB, free: 34.36 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006606/1.382, allocations: 0.5036 MB / 1.37 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/1.382, allocations: 7.562 kB / 1.37 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.034e-05/1.382, allocations: 37.69 kB / 1.37 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.737e-05/1.382, allocations: 31.17 kB / 1.37 GB, free: 33.87 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000609/1.382, allocations: 336.5 kB / 1.37 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/1.382, allocations: 10.91 kB / 1.37 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/1.383, allocations: 7.406 kB / 1.37 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000165/1.383, allocations: 88.2 kB / 1.37 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/1.383, allocations: 0 / 1.37 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/1.383, allocations: 6.062 kB / 1.37 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/1.383, allocations: 0 / 1.37 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001003/1.383, allocations: 50.58 kB / 1.37 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007248/1.384, allocations: 465.5 kB / 1.371 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/1.384, allocations: 91.88 kB / 1.371 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.205e-05/1.384, allocations: 37.75 kB / 1.371 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/1.384, allocations: 6.75 kB / 1.371 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001512/1.384, allocations: 79.88 kB / 1.371 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/1.384, allocations: 0 / 1.371 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.000251/1.384, allocations: 122.1 kB / 1.371 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.456e-05/1.384, allocations: 55.41 kB / 1.371 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003375/1.385, allocations: 338.1 kB / 1.372 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/1.385, allocations: 28.89 kB / 1.372 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.763e-05/1.385, allocations: 140.3 kB / 1.372 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.393e-05/1.385, allocations: 21.8 kB / 1.372 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.183e-05/1.385, allocations: 6.875 kB / 1.372 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001015/1.385, allocations: 336.9 kB / 1.372 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.971e-05/1.385, allocations: 65.89 kB / 1.372 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/1.385, allocations: 104.7 kB / 1.372 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/1.385, allocations: 75.94 kB / 1.372 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/1.385, allocations: 0 / 1.372 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002932/1.386, allocations: 220.8 kB / 1.373 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/1.386, allocations: 3.812 kB / 1.373 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/1.386, allocations: 80 / 1.373 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/1.386, allocations: 3.875 kB / 1.373 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/1.386, allocations: 26.02 kB / 1.373 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/1.386, allocations: 8.047 kB / 1.373 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/1.386, allocations: 28.89 kB / 1.373 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/1.386, allocations: 11.25 kB / 1.373 GB, free: 32.46 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.ram.tab.nextTimeEvent,gre.y,$PRE.greHys.greHys.y,greHys.greHys.y,ram.tab.nextTimeEvent,$PRE.ram.tab.nextTimeEventScaled,ram.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 8.039e-05/1.386, allocations: 115.9 kB / 1.373 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/1.386, allocations: 23.25 kB / 1.373 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002275/1.386, allocations: 127.9 kB / 1.373 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/1.386, allocations: 10.42 kB / 1.373 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/1.386, allocations: 0 / 1.373 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/1.386, allocations: 0 / 1.373 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/1.387, allocations: 262.3 kB / 1.373 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/1.387, allocations: 0 / 1.373 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.306e-05/1.387, allocations: 14.41 kB / 1.373 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/1.387, allocations: 0 / 1.373 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/1.387, allocations: 2.438 kB / 1.373 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/1.387, allocations: 0 / 1.373 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/1.387, allocations: 3.844 kB / 1.373 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001951/1.387, allocations: 158.5 kB / 1.373 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.043e-05/1.387, allocations: 108.2 kB / 1.373 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/1.387, allocations: 10.14 kB / 1.373 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/1.387, allocations: 10.09 kB / 1.373 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.875e-05/1.387, allocations: 20.39 kB / 1.373 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/1.387, allocations: 3.969 kB / 1.373 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002086/1.387, allocations: 231.8 kB / 1.374 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.4e-07/1.387, allocations: 0 / 1.374 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002585/1.388, allocations: 57.08 kB / 1.374 GB, free: 31.8 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: 5 ($whenCondition1,gre.y,greHys.greHys.y,ram.tab.nextTimeEvent,ram.tab.nextTimeEventScaled) * Number of discrete states: 3 (greHys.greHys.y,ram.tab.nextTimeEvent,ram.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00131/1.389, allocations: 0.9668 MB / 1.375 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002063/1.389, allocations: 121.8 kB / 1.375 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/1.389, allocations: 0 / 1.375 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.606e-05/1.389, allocations: 44.41 kB / 1.375 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/1.39, allocations: 46.97 kB / 1.375 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006716/1.39, allocations: 378.3 kB / 1.375 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/1.391, allocations: 0.759 MB / 1.376 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001081/1.391, allocations: 39.27 kB / 1.376 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/1.391, allocations: 71.48 kB / 1.376 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.391, allocations: 0 / 1.376 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/1.409, allocations: 5.211 MB / 1.381 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/1.41, allocations: 204.9 kB / 1.381 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/3.234, allocations: 0 / 1.381 GB, free: 29.22 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat does not exist to compare? outputFormat=mat