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.001174/0.001174, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001261/0.001261, allocations: 196 kB / 16.14 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.304/1.304, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.627/2.627, allocations: 461.9 MB / 0.7342 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 65.14 kB / 0.8985 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2727, allocations: 157.4 MB / 1.052 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002795/0.2756, allocations: 1.842 MB / 1.054 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.2768, allocations: 0.8222 MB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.251e-05/0.2769, allocations: 7.938 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.277, allocations: 3.938 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001942/0.2772, allocations: 39.78 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00035/0.2776, allocations: 142.8 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.2778, allocations: 187.5 kB / 1.055 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.2779, allocations: 53.36 kB / 1.055 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.278, allocations: 59.83 kB / 1.055 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.2782, allocations: 71.67 kB / 1.055 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.193e-05/0.2782, allocations: 11.94 kB / 1.055 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.948e-05/0.2783, allocations: 19.98 kB / 1.055 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.405e-05/0.2784, allocations: 27.91 kB / 1.055 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.232e-05/0.2785, allocations: 67.64 kB / 1.055 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.2787, allocations: 187.7 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2787, allocations: 0 / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.032e-06/0.2787, allocations: 8 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.2787, allocations: 0 / 1.056 GB, free: 4.707 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.0007212/0.2794, allocations: 481.9 kB / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.2795, allocations: 15.97 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.319e-05/0.2795, allocations: 34.75 kB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.041e-05/0.2796, allocations: 16.84 kB / 1.056 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.2799, allocations: 233.3 kB / 1.056 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.2799, allocations: 8.375 kB / 1.056 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.69e-05/0.2799, allocations: 20.31 kB / 1.056 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001624/0.2801, allocations: 87.97 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2801, allocations: 4 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.2801, allocations: 15.97 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.2802, allocations: 7.984 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.2803, allocations: 55.97 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005903/0.2809, allocations: 436.4 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.2811, allocations: 86.58 kB / 1.057 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.494e-05/0.2811, allocations: 32.89 kB / 1.057 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.657e-06/0.2811, allocations: 0 / 1.057 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001312/0.2813, allocations: 91.25 kB / 1.057 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 1.222e-06/0.2813, allocations: 4 kB / 1.057 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002722/0.2816, allocations: 129.4 kB / 1.057 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.2816, allocations: 63.33 kB / 1.057 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.2818, allocations: 175.3 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.2818, allocations: 25.7 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.018e-05/0.2819, allocations: 112.2 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.289e-05/0.282, allocations: 35.67 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-05/0.2821, allocations: 45.7 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.2822, allocations: 318.8 kB / 1.058 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.2823, allocations: 55.97 kB / 1.058 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.2824, allocations: 74.56 kB / 1.058 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001669/0.2826, allocations: 132.2 kB / 1.058 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2826, allocations: 0 / 1.058 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003364/0.2829, allocations: 207.2 kB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.283, allocations: 42.94 kB / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.283, allocations: 0 / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.283, allocations: 4 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.2832, allocations: 23.92 kB / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.2832, allocations: 7.938 kB / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002345/0.2834, allocations: 31.94 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.2834, allocations: 15.98 kB / 1.059 GB, free: 1.367 MB / 0.8106 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 9.563e-05/0.2835, allocations: 121.8 kB / 1.059 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.2836, allocations: 11.91 kB / 1.059 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.529e-05/0.2836, allocations: 17.39 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2836, allocations: 4 kB / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2836, allocations: 3.938 kB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2836, allocations: 0 / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001889/0.2838, allocations: 221.6 kB / 1.059 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2838, allocations: 8.391 kB / 1.059 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.606e-05/0.2839, allocations: 8 kB / 1.059 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.2839, allocations: 0 / 1.059 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.284, allocations: 8 kB / 1.059 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.284, allocations: 0 / 1.059 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.284, allocations: 7.875 kB / 1.059 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.2842, allocations: 172.8 kB / 1.059 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.674e-05/0.2843, allocations: 108.9 kB / 1.059 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/0.2843, allocations: 8 kB / 1.059 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.462e-05/0.2844, allocations: 7.984 kB / 1.059 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.2845, allocations: 15.86 kB / 1.059 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.2845, allocations: 0 / 1.059 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001365/0.2846, allocations: 128.9 kB / 1.059 GB, free: 448 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2846, allocations: 0 / 1.059 GB, free: 448 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002271/0.2849, allocations: 32 kB / 1.059 GB, free: 416 kB / 0.8106 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.0005356/0.2854, allocations: 0.7138 MB / 1.06 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002724/0.2857, allocations: 171.2 kB / 1.06 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2857, allocations: 0 / 1.06 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.924e-05/0.2858, allocations: 39.98 kB / 1.06 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.2861, allocations: 32.67 kB / 1.06 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.2882, allocations: 1.919 MB / 1.062 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.2885, allocations: 0.7159 MB / 1.063 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.543e-05/0.2886, allocations: 20.88 kB / 1.063 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.46e-05/0.2887, allocations: 39.42 kB / 1.063 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2887, allocations: 0 / 1.063 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01278/0.3014, allocations: 3.377 MB / 1.066 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002213/0.3017, allocations: 219.6 kB / 1.067 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.812/2.114, allocations: 0.75 kB / 1.067 GB, free: 9.133 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)