Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_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.001284/0.001284, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 195.3 kB / 16.53 MB, free: 6.391 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.35/1.35, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.819/2.819, allocations: 469.8 MB / 0.7424 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 64.72 kB / 0.9087 GB, free: 34.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2835, allocations: 159.2 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.0031/0.2867, allocations: 1.776 MB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001397/0.2881, allocations: 0.8338 MB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.637e-05/0.2882, allocations: 0 / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001213/0.2883, allocations: 19.8 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002212/0.2886, allocations: 43.7 kB / 1.067 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000436/0.289, allocations: 154.4 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.2893, allocations: 223.5 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.2895, allocations: 37.44 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.2896, allocations: 75.81 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.2898, allocations: 83.61 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.2898, allocations: 16 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.105e-05/0.2899, allocations: 31.98 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.683e-05/0.29, allocations: 31.91 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.2901, allocations: 71.66 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002704/0.2904, allocations: 195.7 kB / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2904, allocations: 0 / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2904, allocations: 0 / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.2904, allocations: 4 kB / 1.068 GB, free: 10.61 MB / 0.8262 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.0008091/0.2912, allocations: 476.5 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.2913, allocations: 12.03 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.486e-05/0.2913, allocations: 38.73 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.696e-05/0.2914, allocations: 20.75 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.2917, allocations: 237.9 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.2918, allocations: 24.25 kB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.795e-05/0.2918, allocations: 12.38 kB / 1.068 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.292, allocations: 86.7 kB / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.292, allocations: 0 / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.292, allocations: 12 kB / 1.068 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.041e-05/0.2921, allocations: 4 kB / 1.068 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001407/0.2922, allocations: 55.95 kB / 1.069 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006938/0.2929, allocations: 440.4 kB / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/0.2931, allocations: 90.62 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.802e-05/0.2932, allocations: 32.84 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.034e-05/0.2932, allocations: 0 / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000145/0.2933, allocations: 83.31 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.2934, allocations: 4 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0003216/0.2937, allocations: 129.4 kB / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.2937, allocations: 59.34 kB / 1.069 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.294, allocations: 176.8 kB / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.294, allocations: 29.7 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.237e-05/0.2941, allocations: 108 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.622e-05/0.2941, allocations: 31.84 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-05/0.2942, allocations: 45.7 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.2944, allocations: 318.8 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.2945, allocations: 55.97 kB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.2946, allocations: 75.23 kB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001888/0.2948, allocations: 132.2 kB / 1.07 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.2949, allocations: 0 / 1.07 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003603/0.2952, allocations: 207.1 kB / 1.07 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.263e-05/0.2953, allocations: 41.75 kB / 1.07 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.2953, allocations: 480 / 1.07 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.2953, allocations: 4 kB / 1.07 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.2955, allocations: 27.92 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.2955, allocations: 7.938 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002394/0.2957, allocations: 31.81 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.2958, allocations: 11.98 kB / 1.071 GB, free: 7.273 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.0001181/0.2959, allocations: 129.8 kB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.846e-05/0.2959, allocations: 11.91 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.897e-05/0.296, allocations: 13.39 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.296, allocations: 4 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.296, allocations: 3.938 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.296, allocations: 0 / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002268/0.2962, allocations: 229.4 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2962, allocations: 0 / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.617e-05/0.2963, allocations: 11.98 kB / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.2963, allocations: 0 / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.2964, allocations: 12 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2964, allocations: 0 / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2964, allocations: 3.938 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003027/0.2967, allocations: 164.9 kB / 1.071 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.692e-05/0.2968, allocations: 104.9 kB / 1.071 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.2968, allocations: 0 / 1.071 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.137e-05/0.2969, allocations: 15.92 kB / 1.071 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.2969, allocations: 7.938 kB / 1.071 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.297, allocations: 12.03 kB / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001578/0.2971, allocations: 132.9 kB / 1.071 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2971, allocations: 0 / 1.071 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002339/0.2974, allocations: 32 kB / 1.071 GB, free: 6.309 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.0006409/0.298, allocations: 0.7179 MB / 1.072 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003124/0.2983, allocations: 179.2 kB / 1.072 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2984, allocations: 0 / 1.072 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.426e-05/0.2984, allocations: 35.98 kB / 1.072 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002733/0.2987, allocations: 30.55 kB / 1.072 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/0.3011, allocations: 1.901 MB / 1.074 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.3014, allocations: 0.7119 MB / 1.075 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.714e-05/0.3015, allocations: 16.88 kB / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.553e-05/0.3016, allocations: 35.42 kB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.3016, allocations: 0 / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02682/0.3284, allocations: 3.594 MB / 1.078 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.51/14.84, allocations: 8.484 kB / 1.078 GB, free: 15.05 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches