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.001451/0.001451, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001412/0.001412, allocations: 192.4 kB / 16.25 MB, free: 6.633 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.307/1.307, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.693/2.693, allocations: 469.8 MB / 0.7421 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 75.28 kB / 0.9082 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3103, allocations: 159.2 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003243/0.3136, allocations: 1.83 MB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001424/0.315, allocations: 0.8222 MB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.707e-05/0.3151, allocations: 0 / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.3153, allocations: 7.875 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002463/0.3156, allocations: 39.84 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004505/0.316, allocations: 138.6 kB / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003031/0.3163, allocations: 223.5 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.3165, allocations: 37.42 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.3166, allocations: 79.75 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.3168, allocations: 79.67 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.724e-05/0.3168, allocations: 20 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.971e-05/0.3169, allocations: 28 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.021e-05/0.317, allocations: 35.89 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.3171, allocations: 75.59 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000272/0.3174, allocations: 203.7 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3174, allocations: 0 / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3174, allocations: 3.938 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.042e-06/0.3174, allocations: 0 / 1.067 GB, free: 10.86 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.0008719/0.3183, allocations: 476.5 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3183, allocations: 12.03 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.567e-05/0.3184, allocations: 34.75 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.52e-05/0.3185, allocations: 16.75 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.3188, allocations: 241.3 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.3188, allocations: 16.31 kB / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/0.3189, allocations: 16.36 kB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.3191, allocations: 85.8 kB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.3191, allocations: 4 kB / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.3191, allocations: 3.984 kB / 1.068 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.3191, allocations: 4 kB / 1.068 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.3193, allocations: 59.97 kB / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006698/0.3199, allocations: 440.4 kB / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.3201, allocations: 86.52 kB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.389e-05/0.3202, allocations: 36.89 kB / 1.069 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.3202, allocations: 0 / 1.069 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001525/0.3204, allocations: 83.52 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.3204, allocations: 0 / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0003119/0.3207, allocations: 145.4 kB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.3208, allocations: 59.28 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.321, allocations: 176.8 kB / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.321, allocations: 25.7 kB / 1.069 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.757e-05/0.3211, allocations: 112 kB / 1.069 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.68e-05/0.3212, allocations: 31.69 kB / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-05/0.3212, allocations: 37.7 kB / 1.069 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3214, allocations: 322.8 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.3215, allocations: 60.34 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.3217, allocations: 71.42 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.3218, allocations: 136.2 kB / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3219, allocations: 0 / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003464/0.3222, allocations: 207.1 kB / 1.07 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.362e-05/0.3223, allocations: 45.69 kB / 1.07 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3223, allocations: 0 / 1.07 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.3223, allocations: 0 / 1.07 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.3224, allocations: 23.98 kB / 1.07 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.3225, allocations: 3.938 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.3227, allocations: 39.86 kB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.3227, allocations: 8 kB / 1.07 GB, free: 7.531 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.000121/0.3229, allocations: 133.8 kB / 1.07 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.3229, allocations: 15.89 kB / 1.07 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.134e-05/0.3229, allocations: 13.41 kB / 1.07 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.323, allocations: 4 kB / 1.07 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.323, allocations: 3.938 kB / 1.07 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.323, allocations: 0 / 1.07 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002266/0.3232, allocations: 233.5 kB / 1.07 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3232, allocations: 0 / 1.07 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.488e-05/0.3233, allocations: 8 kB / 1.07 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3233, allocations: 4 kB / 1.07 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.3233, allocations: 7.984 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3233, allocations: 0 / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.3233, allocations: 7.938 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002733/0.3236, allocations: 160.9 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.837e-05/0.3237, allocations: 108.9 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.3238, allocations: 3.984 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.86e-05/0.3238, allocations: 7.938 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/0.3239, allocations: 19.92 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.3239, allocations: 4 kB / 1.071 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001461/0.3241, allocations: 128 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3241, allocations: 0 / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002309/0.3243, allocations: 28 kB / 1.071 GB, free: 6.562 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.0006/0.3249, allocations: 0.7139 MB / 1.072 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003142/0.3252, allocations: 175.3 kB / 1.072 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3252, allocations: 0 / 1.072 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.592e-05/0.3253, allocations: 39.92 kB / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.3256, allocations: 35.91 kB / 1.072 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002422/0.3281, allocations: 1.919 MB / 1.074 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.3284, allocations: 0.708 MB / 1.074 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.221e-05/0.3285, allocations: 20.86 kB / 1.074 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.206e-05/0.3286, allocations: 35.42 kB / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of SimCode: time 5.81e-07/0.3286, allocations: 4 kB / 1.075 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.437/1.765, allocations: 3.479 MB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003301/1.766, allocations: 223.9 kB / 1.078 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.693/4.459, allocations: 0 / 1.078 GB, free: 15.18 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