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.65/2.65, allocations: 387.1 MB / 399.7 MB, free: 9.512 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.001463/0.001463, allocations: 180.1 kB / 492.3 MB, free: 0.6094 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.595/1.595, allocations: 221.3 MB / 0.7871 GB, free: 12.86 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.0009141/0.0009141, allocations: 97.31 kB / 0.9267 GB, free: 13.93 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.235e-05/3.237e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2449, allocations: 142.4 MB / 1.213 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.005/1.25, allocations: 149.8 MB / 1.359 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/1.251, allocations: 78.38 kB / 1.359 GB, free: 19.04 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01057/1.261, allocations: 3.592 MB / 1.362 GB, free: 34.55 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.703e-06/1.261, allocations: 0 / 1.362 GB, free: 34.55 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.107e-05/1.261, allocations: 3.781 kB / 1.362 GB, free: 34.55 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007239/1.262, allocations: 458.7 kB / 1.363 GB, free: 34.16 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/1.262, allocations: 7.656 kB / 1.363 GB, free: 34.16 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.096e-05/1.262, allocations: 47.67 kB / 1.363 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.663e-05/1.262, allocations: 19.44 kB / 1.363 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/1.263, allocations: 235.5 kB / 1.363 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/1.263, allocations: 7.5 kB / 1.363 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/1.263, allocations: 22.41 kB / 1.363 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002399/1.263, allocations: 124.2 kB / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/1.263, allocations: 3.812 kB / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/1.263, allocations: 7.25 kB / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/1.263, allocations: 3.875 kB / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001474/1.263, allocations: 77.81 kB / 1.363 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/1.264, allocations: 0.5463 MB / 1.364 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/1.265, allocations: 121.1 kB / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.864e-05/1.265, allocations: 68.02 kB / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.589e-05/1.265, allocations: 9.781 kB / 1.364 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001707/1.265, allocations: 106.9 kB / 1.364 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=19): time 2.716e-06/1.265, allocations: 0 / 1.364 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.0002684/1.265, allocations: 147.3 kB / 1.364 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/1.265, allocations: 59.23 kB / 1.364 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/1.266, allocations: 137.5 kB / 1.365 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/1.266, allocations: 30.53 kB / 1.365 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.628e-05/1.266, allocations: 121.2 kB / 1.365 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.207e-05/1.266, allocations: 67.06 kB / 1.365 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.899e-06/1.266, allocations: 3.812 kB / 1.365 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001105/1.266, allocations: 323.6 kB / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.531e-05/1.266, allocations: 51.84 kB / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.46e-05/1.266, allocations: 74.77 kB / 1.365 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.5e-05/1.266, allocations: 58.95 kB / 1.365 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/1.266, allocations: 0 / 1.365 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002462/1.266, allocations: 183.9 kB / 1.365 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/1.266, allocations: 11.66 kB / 1.365 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/1.266, allocations: 5.344 kB / 1.365 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/1.266, allocations: 0 / 1.365 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002036/1.267, allocations: 49 kB / 1.365 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/1.267, allocations: 0.7812 kB / 1.365 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/1.267, allocations: 41.44 kB / 1.365 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/1.267, allocations: 7.25 kB / 1.366 GB, free: 32.67 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: 3 ($whenCondition1,$PRE.lesThr.lesHys.y,lesThr.lesHys.y) * Number of discrete 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 7.881e-05/1.267, allocations: 116.9 kB / 1.366 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.267e-05/1.267, allocations: 15.5 kB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002857/1.267, allocations: 165.4 kB / 1.366 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/1.267, allocations: 3.812 kB / 1.366 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/1.267, allocations: 4 kB / 1.366 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/1.267, allocations: 0 / 1.366 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006302/1.268, allocations: 0.5617 MB / 1.366 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/1.268, allocations: 0 / 1.366 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/1.268, allocations: 40.06 kB / 1.366 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/1.268, allocations: 3.844 kB / 1.366 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/1.268, allocations: 7.312 kB / 1.366 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/1.268, allocations: 3.953 kB / 1.366 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/1.268, allocations: 3.969 kB / 1.366 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004127/1.269, allocations: 414.1 kB / 1.367 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.664e-05/1.269, allocations: 88.92 kB / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/1.269, allocations: 13.61 kB / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/1.269, allocations: 20.42 kB / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.633e-05/1.269, allocations: 25.53 kB / 1.367 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/1.269, allocations: 10.72 kB / 1.367 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.744e-05/1.269, allocations: 122.5 kB / 1.367 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.269, allocations: 0 / 1.367 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002598/1.269, allocations: 34.5 kB / 1.367 GB, free: 31.63 MB / 0.8386 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) * 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.0008024/1.27, allocations: 1.363 MB / 1.368 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002332/1.27, allocations: 137.6 kB / 1.369 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.27, allocations: 0 / 1.369 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001051/1.27, allocations: 76.03 kB / 1.369 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/1.271, allocations: 30.94 kB / 1.369 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000674/1.271, allocations: 333.3 kB / 1.369 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/1.272, allocations: 0.7333 MB / 1.37 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.09e-05/1.272, allocations: 15.66 kB / 1.37 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.284e-05/1.272, allocations: 45.38 kB / 1.37 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of SimCode: time 3.21e-07/1.272, allocations: 4 kB / 1.37 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01488/1.287, allocations: 3.13 MB / 1.373 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001478/1.287, allocations: 167.4 kB / 1.373 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/3.039, allocations: 0 / 1.373 GB, free: 28.96 MB / 0.8386 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