Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.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.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",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.254/2.254, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001053/0.001053, allocations: 185.2 kB / 498.1 MB, free: 5.746 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.474/1.474, allocations: 223.1 MB / 0.7948 GB, free: 17.93 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.001172/0.001171, allocations: 109.2 kB / 0.9346 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003749/0.0003749, allocations: 13.75 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2756, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1777/0.4533, allocations: 149.9 MB / 1.369 GB, free: 12.11 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003273/0.4537, allocations: 75.95 kB / 1.369 GB, free: 12.03 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01058/0.4643, allocations: 3.592 MB / 1.373 GB, free: 8.434 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.725e-06/0.4643, allocations: 0 / 1.373 GB, free: 8.434 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.711e-05/0.4644, allocations: 7.938 kB / 1.373 GB, free: 8.426 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007815/0.4651, allocations: 467 kB / 1.373 GB, free: 7.918 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.4652, allocations: 8.031 kB / 1.373 GB, free: 7.91 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.506e-05/0.4653, allocations: 54.53 kB / 1.373 GB, free: 7.848 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.654e-05/0.4653, allocations: 27.77 kB / 1.373 GB, free: 7.82 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.4657, allocations: 223.9 kB / 1.374 GB, free: 7.562 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.4657, allocations: 16.28 kB / 1.374 GB, free: 7.547 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.904e-05/0.4658, allocations: 16 kB / 1.374 GB, free: 7.531 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.4662, allocations: 151.8 kB / 1.374 GB, free: 7.379 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.4662, allocations: 3.984 kB / 1.374 GB, free: 7.375 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.4662, allocations: 4 kB / 1.374 GB, free: 7.371 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.4663, allocations: 7.953 kB / 1.374 GB, free: 7.363 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002733/0.4665, allocations: 112.8 kB / 1.374 GB, free: 7.254 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.4677, allocations: 0.5432 MB / 1.374 GB, free: 6.656 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.4681, allocations: 142.7 kB / 1.375 GB, free: 6.508 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.4682, allocations: 4 kB / 1.375 GB, free: 6.504 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.4685, allocations: 128.8 kB / 1.375 GB, free: 6.367 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=19): time 1.873e-06/0.4685, allocations: 0 / 1.375 GB, free: 6.367 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19): time 0.0005608/0.469, allocations: 239.2 kB / 1.375 GB, free: 6.129 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.4691, allocations: 63.28 kB / 1.375 GB, free: 6.055 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.4692, allocations: 142.1 kB / 1.375 GB, free: 5.91 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.4693, allocations: 29.7 kB / 1.375 GB, free: 5.875 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.087e-05/0.4694, allocations: 112.4 kB / 1.375 GB, free: 5.762 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.137e-05/0.4694, allocations: 70.98 kB / 1.375 GB, free: 5.691 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.082e-05/0.4695, allocations: 4 kB / 1.375 GB, free: 5.688 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.4696, allocations: 326.8 kB / 1.376 GB, free: 5.359 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.4698, allocations: 71.95 kB / 1.376 GB, free: 5.289 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002371/0.4701, allocations: 94.72 kB / 1.376 GB, free: 5.188 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.4703, allocations: 81.88 kB / 1.376 GB, free: 5.109 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4703, allocations: 0 / 1.376 GB, free: 5.109 MB / 0.8698 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004799/0.4708, allocations: 225.2 kB / 1.376 GB, free: 4.887 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.4708, allocations: 8.031 kB / 1.376 GB, free: 4.879 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.4708, allocations: 0 / 1.376 GB, free: 4.879 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.4708, allocations: 3.953 kB / 1.376 GB, free: 4.875 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002075/0.4711, allocations: 47.91 kB / 1.376 GB, free: 4.828 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.4711, allocations: 0 / 1.376 GB, free: 4.828 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.4712, allocations: 31.83 kB / 1.376 GB, free: 4.797 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.4712, allocations: 4 kB / 1.376 GB, free: 4.793 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.lesThr.lesHys.y,lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 0.000114/0.4714, allocations: 129.8 kB / 1.376 GB, free: 4.656 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.441e-05/0.4714, allocations: 15.81 kB / 1.376 GB, free: 4.641 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004333/0.4718, allocations: 207.7 kB / 1.377 GB, free: 4.43 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.4719, allocations: 7.922 kB / 1.377 GB, free: 4.422 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.4719, allocations: 0 / 1.377 GB, free: 4.422 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.4719, allocations: 0 / 1.377 GB, free: 4.422 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008321/0.4727, allocations: 0.5852 MB / 1.377 GB, free: 3.762 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.4727, allocations: 4 kB / 1.377 GB, free: 3.758 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.4729, allocations: 44.09 kB / 1.377 GB, free: 3.715 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.4729, allocations: 11.95 kB / 1.377 GB, free: 3.703 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.473, allocations: 4 kB / 1.377 GB, free: 3.699 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.473, allocations: 4 kB / 1.377 GB, free: 3.695 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.473, allocations: 4 kB / 1.377 GB, free: 3.691 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006365/0.4736, allocations: 471.8 kB / 1.378 GB, free: 3.16 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.297e-05/0.4737, allocations: 92.92 kB / 1.378 GB, free: 3.051 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.4737, allocations: 7.953 kB / 1.378 GB, free: 3.043 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.4739, allocations: 24.03 kB / 1.378 GB, free: 3.02 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/0.474, allocations: 28 kB / 1.378 GB, free: 2.992 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.474, allocations: 7.984 kB / 1.378 GB, free: 2.984 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 8.202e-05/0.4741, allocations: 124.7 kB / 1.378 GB, free: 2.863 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4741, allocations: 0 / 1.378 GB, free: 2.863 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002748/0.4744, allocations: 35.84 kB / 1.378 GB, free: 2.828 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.001115/0.4755, allocations: 1.433 MB / 1.379 GB, free: 1.328 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0004468/0.4759, allocations: 174 kB / 1.38 GB, free: 1.164 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.476, allocations: 0 / 1.38 GB, free: 1.164 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.4762, allocations: 91.83 kB / 1.38 GB, free: 1.074 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.4764, allocations: 18.16 kB / 1.38 GB, free: 1.059 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.4784, allocations: 1.211 MB / 1.381 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.4787, allocations: 0.7321 MB / 1.382 GB, free: 15.01 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.173e-05/0.4788, allocations: 17.42 kB / 1.382 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.662e-05/0.4789, allocations: 47.42 kB / 1.382 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of SimCode: time 3.71e-07/0.4789, allocations: 4 kB / 1.382 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01505/0.494, allocations: 3.123 MB / 1.385 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/0.4942, allocations: 192.3 kB / 1.385 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/2.318, allocations: 0 / 1.385 GB, free: 11.72 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat does not exist to compare? outputFormat=mat