Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",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.000827/0.0008267, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005565/0.005565, allocations: 168.9 kB / 16.26 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.583/2.583, allocations: 462.7 MB / 0.7364 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003303/0.0003303, allocations: 9.875 kB / 0.9029 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2942, allocations: 159.6 MB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002034/0.2963, allocations: 1.5 MB / 1.06 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.2977, allocations: 0.8105 MB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.922e-05/0.2978, allocations: 0 / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.2979, allocations: 11.92 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002197/0.2981, allocations: 35.78 kB / 1.061 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000402/0.2985, allocations: 150.6 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002341/0.2988, allocations: 191.5 kB / 1.061 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.2989, allocations: 37.44 kB / 1.061 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.299, allocations: 63.77 kB / 1.061 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.2992, allocations: 67.67 kB / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.2992, allocations: 4 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.157e-05/0.2993, allocations: 19.98 kB / 1.062 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.733e-05/0.2994, allocations: 27.91 kB / 1.062 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.644e-05/0.2995, allocations: 89.34 kB / 1.062 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.2997, allocations: 187.6 kB / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2997, allocations: 4 kB / 1.062 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.763e-06/0.2997, allocations: 0 / 1.062 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.2997, allocations: 0 / 1.062 GB, free: 1.773 MB / 0.8106 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.0007372/0.3005, allocations: 448.7 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3005, allocations: 11.97 kB / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.642e-05/0.3006, allocations: 38.75 kB / 1.062 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.908e-05/0.3006, allocations: 12.84 kB / 1.062 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.301, allocations: 253.2 kB / 1.063 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.301, allocations: 8.312 kB / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.3011, allocations: 12.38 kB / 1.063 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.3012, allocations: 85.78 kB / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.3013, allocations: 0 / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.3013, allocations: 8 kB / 1.063 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.3013, allocations: 4 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.3014, allocations: 51.97 kB / 1.063 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006906/0.3021, allocations: 456.4 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001748/0.3023, allocations: 86.52 kB / 1.063 GB, free: 168 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.291e-05/0.3024, allocations: 36.89 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.3024, allocations: 0 / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/0.3025, allocations: 83.38 kB / 1.063 GB, free: 32 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.182e-06/0.3026, allocations: 3.938 kB / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0003205/0.3029, allocations: 133.6 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.3029, allocations: 59.34 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.3032, allocations: 175.3 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.855e-05/0.3032, allocations: 37.7 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.466e-05/0.3033, allocations: 104 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.23e-05/0.3033, allocations: 31.61 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.3034, allocations: 29.7 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.3035, allocations: 322.8 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.3036, allocations: 51.91 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.3038, allocations: 78.55 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.304, allocations: 132.2 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.304, allocations: 0 / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003308/0.3043, allocations: 211.1 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.688e-05/0.3044, allocations: 29.7 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3044, allocations: 4 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.3044, allocations: 0 / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3045, allocations: 27.98 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.3046, allocations: 11.98 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.3048, allocations: 39.88 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.3048, allocations: 8 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.305, allocations: 137.8 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.305, allocations: 11.91 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.171e-05/0.305, allocations: 13.41 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.3051, allocations: 0 / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3051, allocations: 3.938 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3051, allocations: 3.984 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001835/0.3053, allocations: 221.6 kB / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3053, allocations: 0 / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.576e-05/0.3054, allocations: 11.98 kB / 1.065 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3054, allocations: 0 / 1.065 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.3054, allocations: 8.469 kB / 1.065 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3054, allocations: 4 kB / 1.065 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3054, allocations: 7.922 kB / 1.065 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000258/0.3057, allocations: 172.8 kB / 1.065 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.91e-05/0.3057, allocations: 100.8 kB / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.3058, allocations: 0 / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.906e-05/0.3059, allocations: 8 kB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.3059, allocations: 15.86 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.3059, allocations: 8.062 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001324/0.3061, allocations: 132.9 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3061, allocations: 0 / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002323/0.3063, allocations: 32 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005882/0.3069, allocations: 0.7061 MB / 1.066 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000352/0.3073, allocations: 171.3 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3073, allocations: 0 / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.07e-05/0.3074, allocations: 43.97 kB / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.3076, allocations: 41.53 kB / 1.067 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.3098, allocations: 1.924 MB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.3101, allocations: 0.716 MB / 1.069 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.438e-05/0.3102, allocations: 16.86 kB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.426e-05/0.3103, allocations: 35.44 kB / 1.069 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of SimCode: time 2.685e-06/0.3103, allocations: 0 / 1.069 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03793/0.3482, allocations: 3.303 MB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/0.3484, allocations: 222.7 kB / 1.073 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/2.131, allocations: 5.125 kB / 1.073 GB, free: 6.32 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1)