Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_latest_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008969/0.0008971, allocations: 92.31 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 223.2 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.642/2.642, allocations: 409.4 MB / 0.684 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003217/0.0003217, allocations: 16 kB / 0.8378 GB, free: 6.512 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7878/0.7881, allocations: 146.8 MB / 0.9812 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.001433/0.7896, allocations: 0.7459 MB / 0.9819 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001307/0.7909, allocations: 0.9793 MB / 0.9828 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.791, allocations: 4 kB / 0.9828 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.7912, allocations: 11.86 kB / 0.9829 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.745e-05/0.7912, allocations: 7.875 kB / 0.9829 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.7915, allocations: 55.94 kB / 0.9829 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001813/0.7917, allocations: 156.1 kB / 0.9831 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.7918, allocations: 58.58 kB / 0.9831 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.312e-05/0.7919, allocations: 63.66 kB / 0.9832 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.326e-05/0.792, allocations: 51.7 kB / 0.9832 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.366e-05/0.792, allocations: 4 kB / 0.9832 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.798e-05/0.7921, allocations: 8 kB / 0.9832 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.261e-05/0.7921, allocations: 27.89 kB / 0.9833 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.664e-05/0.7922, allocations: 49.58 kB / 0.9833 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.7923, allocations: 125.9 kB / 0.9834 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.7923, allocations: 0 / 0.9834 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.964e-06/0.7923, allocations: 4 kB / 0.9834 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.7924, allocations: 0 / 0.9834 GB, free: 3.918 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.000789/0.7932, allocations: 458.8 kB / 0.9839 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.7932, allocations: 8.031 kB / 0.9839 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.829e-05/0.7933, allocations: 50.55 kB / 0.9839 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.906e-05/0.7933, allocations: 27.72 kB / 0.984 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.7936, allocations: 215.3 kB / 0.9842 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.7936, allocations: 11.94 kB / 0.9842 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.455e-05/0.7937, allocations: 20 kB / 0.9842 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003313/0.794, allocations: 153.5 kB / 0.9843 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.794, allocations: 0 / 0.9843 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.7941, allocations: 12 kB / 0.9844 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.7941, allocations: 8 kB / 0.9844 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002756/0.7944, allocations: 119.7 kB / 0.9845 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.7954, allocations: 0.5469 MB / 0.985 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.7958, allocations: 150.8 kB / 0.9852 GB, free: 2 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.796, allocations: 80.83 kB / 0.9852 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.7961, allocations: 11.92 kB / 0.9852 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00028/0.7963, allocations: 128.5 kB / 0.9854 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 1.523e-06/0.7963, allocations: 0 / 0.9854 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.0005186/0.7969, allocations: 234.6 kB / 0.9856 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.7969, allocations: 59.41 kB / 0.9856 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.7971, allocations: 161.7 kB / 0.9858 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.7971, allocations: 37.64 kB / 0.9858 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.673e-05/0.7972, allocations: 120.4 kB / 0.986 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.807e-05/0.7973, allocations: 59.11 kB / 0.986 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.928e-06/0.7973, allocations: 4 kB / 0.986 GB, free: 1.074 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.7974, allocations: 322.8 kB / 0.9863 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.7976, allocations: 75.95 kB / 0.9864 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.7978, allocations: 95.14 kB / 0.9865 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000194/0.798, allocations: 86.17 kB / 0.9866 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.7981, allocations: 0 / 0.9866 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000451/0.7985, allocations: 222.4 kB / 0.9868 GB, free: 284 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.7985, allocations: 5.562 kB / 0.9868 GB, free: 280 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.7986, allocations: 8.031 kB / 0.9868 GB, free: 272 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.7986, allocations: 0 / 0.9868 GB, free: 272 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.7988, allocations: 43.97 kB / 0.9868 GB, free: 228 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.7988, allocations: 0 / 0.9868 GB, free: 228 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.7989, allocations: 27.83 kB / 0.9869 GB, free: 200 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.7989, allocations: 11.98 kB / 0.9869 GB, free: 188 kB / 0.7325 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.0001283/0.7991, allocations: 133.7 kB / 0.987 GB, free: 44 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/0.7991, allocations: 15.81 kB / 0.987 GB, free: 28 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004342/0.7995, allocations: 207.7 kB / 0.9872 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.7996, allocations: 8 kB / 0.9872 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.7996, allocations: 3.938 kB / 0.9872 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.7996, allocations: 3.984 kB / 0.9872 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008136/0.8004, allocations: 0.5928 MB / 0.9878 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.8004, allocations: 3.984 kB / 0.9878 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.8006, allocations: 39.98 kB / 0.9878 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.8006, allocations: 8.188 kB / 0.9879 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.8006, allocations: 0 / 0.9879 GB, free: 15.08 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.8006, allocations: 7.938 kB / 0.9879 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.8006, allocations: 0 / 0.9879 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005982/0.8012, allocations: 402.4 kB / 0.9882 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.08e-05/0.8013, allocations: 96.86 kB / 0.9883 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.203e-05/0.8014, allocations: 11.94 kB / 0.9883 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.8015, allocations: 24.02 kB / 0.9884 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/0.8016, allocations: 19.97 kB / 0.9884 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.8016, allocations: 8 kB / 0.9884 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.254e-05/0.8017, allocations: 119.8 kB / 0.9885 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8017, allocations: 8 kB / 0.9885 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002665/0.802, allocations: 31.94 kB / 0.9886 GB, free: 14.32 MB / 0.7481 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.0008955/0.8029, allocations: 0.9319 MB / 0.9895 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000398/0.8033, allocations: 169.3 kB / 0.9896 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.8033, allocations: 0 / 0.9896 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.8035, allocations: 95.91 kB / 0.9897 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.8038, allocations: 23.98 kB / 0.9897 GB, free: 13.06 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001665/0.8055, allocations: 1.103 MB / 0.9908 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.8058, allocations: 0.7246 MB / 0.9915 GB, free: 11.13 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.357e-05/0.8059, allocations: 17.36 kB / 0.9915 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.223e-05/0.806, allocations: 51.41 kB / 0.9916 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of SimCode: time 2.6e-07/0.806, allocations: 0 / 0.9916 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02147/0.8275, allocations: 3.155 MB / 0.9947 GB, free: 8.074 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003118/0.8278, allocations: 202.9 kB / 0.9949 GB, free: 7.836 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.901/2.729, allocations: 0 / 0.9949 GB, free: 7.836 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat does not exist to compare? outputFormat=mat