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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001179/0.001179, 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.0015/0.0015, allocations: 193.4 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.715/2.715, allocations: 469.4 MB / 0.742 GB, free: 7.691 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 69.56 kB / 0.9083 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3092, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003908/0.3131, allocations: 1.781 MB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001645/0.3148, allocations: 0.8377 MB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001966/0.3151, allocations: 0 / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.3153, allocations: 15.8 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003735/0.3157, allocations: 43.72 kB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005529/0.3163, allocations: 157.2 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003168/0.3166, allocations: 215.5 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.3167, allocations: 45.42 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.3169, allocations: 79.75 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001827/0.3171, allocations: 75.67 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.6e-05/0.3172, allocations: 20 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.834e-05/0.3173, allocations: 31.98 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.353e-05/0.3174, allocations: 31.91 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.3175, allocations: 75.64 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003123/0.3178, allocations: 195.6 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.3179, allocations: 8 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.495e-06/0.3179, allocations: 0 / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.115e-06/0.3179, allocations: 0 / 1.067 GB, free: 10.9 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.0009313/0.3188, allocations: 476.5 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.3189, allocations: 12.03 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.744e-05/0.3189, allocations: 38.73 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.678e-05/0.319, allocations: 20.75 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.3194, allocations: 240.6 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.3194, allocations: 8.312 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.314e-05/0.3194, allocations: 12.38 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.3196, allocations: 85.78 kB / 1.068 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.3197, allocations: 4 kB / 1.068 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.3197, allocations: 0 / 1.068 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.246e-05/0.3197, allocations: 11.94 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001298/0.3198, allocations: 59.97 kB / 1.068 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006283/0.3205, allocations: 444.4 kB / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001613/0.3206, allocations: 90.56 kB / 1.069 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.655e-05/0.3207, allocations: 25.02 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.3207, allocations: 0 / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001388/0.3209, allocations: 87.36 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.3209, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002867/0.3212, allocations: 133.4 kB / 1.069 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.3212, allocations: 67.34 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.3214, allocations: 171.3 kB / 1.069 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.3215, allocations: 29.7 kB / 1.069 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.52e-05/0.3215, allocations: 108 kB / 1.069 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.221e-05/0.3216, allocations: 27.7 kB / 1.069 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.524e-05/0.3217, allocations: 45.69 kB / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3218, allocations: 318.8 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.3219, allocations: 59.91 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.3221, allocations: 74.55 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.3223, allocations: 124.2 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.3223, allocations: 0 / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003563/0.3226, allocations: 211.1 kB / 1.07 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.718e-05/0.3227, allocations: 37.7 kB / 1.07 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3227, allocations: 4.062 kB / 1.07 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.3227, allocations: 4 kB / 1.07 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.3229, allocations: 19.98 kB / 1.07 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.3229, allocations: 11.92 kB / 1.07 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.3232, allocations: 28.34 kB / 1.07 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.3232, allocations: 12 kB / 1.07 GB, free: 7.586 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.0001345/0.3234, allocations: 133.8 kB / 1.07 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.698e-05/0.3234, allocations: 15.84 kB / 1.07 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.656e-05/0.3235, allocations: 17.41 kB / 1.07 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.3235, allocations: 0 / 1.07 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/0.3235, allocations: 7.922 kB / 1.07 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3235, allocations: 3.984 kB / 1.07 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.3237, allocations: 225.5 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.3237, allocations: 0 / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.509e-05/0.3238, allocations: 15.98 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.3238, allocations: 0 / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.3238, allocations: 4 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3239, allocations: 4 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3239, allocations: 3.938 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002685/0.3241, allocations: 165 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.874e-05/0.3242, allocations: 100.8 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.3243, allocations: 4 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.18e-05/0.3243, allocations: 15.92 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.3244, allocations: 7.938 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-06/0.3244, allocations: 8.062 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001475/0.3246, allocations: 132.9 kB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3246, allocations: 0 / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002486/0.3248, allocations: 32 kB / 1.071 GB, free: 6.613 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.0005291/0.3254, allocations: 0.7104 MB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003001/0.3257, allocations: 187.5 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3257, allocations: 0 / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.293e-05/0.3258, allocations: 43.92 kB / 1.072 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.326, allocations: 29.09 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00236/0.3284, allocations: 1.887 MB / 1.074 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.3287, allocations: 0.7158 MB / 1.074 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.289e-05/0.3288, allocations: 16.88 kB / 1.074 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.298e-05/0.3289, allocations: 35.42 kB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of SimCode: time 7.51e-07/0.3289, allocations: 0 / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02383/0.3527, allocations: 3.604 MB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.052/8.405, allocations: 1.812 kB / 1.078 GB, free: 15.36 MB / 0.8419 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches